Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-06 02:30:57 +0400
committerRobin Appelman <icewind1991@gmail.com>2011-07-06 02:30:57 +0400
commit7362f103ed092bee05c2aa228b55fbedfd5aa4ed (patch)
tree8537f7355a00b75a144ffdeb3fec196f92794d40 /apps/user_ldap
parent53ae56097de2098a2ffd1a8dd1076825bc93305d (diff)
only use ldap user backend when it is configured
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/user_ldap.php6
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);
}