mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
only use ldap user backend when it is configured
This commit is contained in:
parent
53ae56097d
commit
7362f103ed
1 changed files with 6 additions and 0 deletions
|
|
@ -97,6 +97,9 @@ class OC_USER_LDAP extends OC_USER_BACKEND {
|
|||
return $entries[0]["dn"];
|
||||
}
|
||||
public function checkPassword( $uid, $password ) {
|
||||
if(!self::$configured){
|
||||
return false;
|
||||
}
|
||||
$dn = $this->getDn( $uid );
|
||||
if( !$dn )
|
||||
return false;
|
||||
|
|
@ -105,6 +108,9 @@ class OC_USER_LDAP extends OC_USER_BACKEND {
|
|||
}
|
||||
|
||||
public function userExists( $uid ) {
|
||||
if(!self::$configured){
|
||||
return false;
|
||||
}
|
||||
$dn = $this->getDn($uid);
|
||||
return !empty($dn);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue