diff options
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index d6ed8c741e7..b197aaa2502 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -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); } |