only use ldap user backend when it is configured
This commit is contained in:
parent
53ae56097d
commit
7362f103ed
|
@ -97,6 +97,9 @@ class OC_USER_LDAP extends OC_USER_BACKEND {
|
||||||
return $entries[0]["dn"];
|
return $entries[0]["dn"];
|
||||||
}
|
}
|
||||||
public function checkPassword( $uid, $password ) {
|
public function checkPassword( $uid, $password ) {
|
||||||
|
if(!self::$configured){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$dn = $this->getDn( $uid );
|
$dn = $this->getDn( $uid );
|
||||||
if( !$dn )
|
if( !$dn )
|
||||||
return false;
|
return false;
|
||||||
|
@ -105,6 +108,9 @@ class OC_USER_LDAP extends OC_USER_BACKEND {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function userExists( $uid ) {
|
public function userExists( $uid ) {
|
||||||
|
if(!self::$configured){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$dn = $this->getDn($uid);
|
$dn = $this->getDn($uid);
|
||||||
return !empty($dn);
|
return !empty($dn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue