aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-08-05 22:02:34 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-08-05 22:02:34 +0200
commitc10010e4100dc2dc165e1b7d207fe19b995f4e53 (patch)
treeb6ecd30a3b58ab1f6f88001656da915991fe62ff
parentc3cbb463e3cdd967e2c9a9bfd1e332e4a9fa8300 (diff)
downloadnextcloud-server-c10010e4100dc2dc165e1b7d207fe19b995f4e53.tar.gz
nextcloud-server-c10010e4100dc2dc165e1b7d207fe19b995f4e53.zip
LDAP: check for always available attribute on userExists, fixes oc-1440
-rw-r--r--apps/user_ldap/user_ldap.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php
index 2059d5b0c6d..fb3471af91b 100644
--- a/apps/user_ldap/user_ldap.php
+++ b/apps/user_ldap/user_ldap.php
@@ -127,9 +127,9 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface {
return false;
}
- //if user really still exists, we will be able to read his cn
- $cn = $this->readAttribute($dn, 'cn');
- if(!$cn || empty($cn)) {
+ //if user really still exists, we will be able to read his objectclass
+ $objcs = $this->readAttribute($dn, 'objectclass');
+ if(!$objcs || empty($objcs)) {
$this->connection->writeToCache('userExists'.$uid, false);
return false;
}