diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-06 00:30:57 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-06 00:30:57 +0200 |
commit | 7362f103ed092bee05c2aa228b55fbedfd5aa4ed (patch) | |
tree | 8537f7355a00b75a144ffdeb3fec196f92794d40 /apps | |
parent | 53ae56097de2098a2ffd1a8dd1076825bc93305d (diff) | |
download | nextcloud-server-7362f103ed092bee05c2aa228b55fbedfd5aa4ed.tar.gz nextcloud-server-7362f103ed092bee05c2aa228b55fbedfd5aa4ed.zip |
only use ldap user backend when it is configured
Diffstat (limited to 'apps')
-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); } |