diff options
author | Renaud Fortier <Renaud.Fortier@fsaa.ulaval.ca> | 2015-08-11 11:55:38 -0400 |
---|---|---|
committer | Renaud Fortier <Renaud.Fortier@fsaa.ulaval.ca> | 2015-08-11 11:55:38 -0400 |
commit | 3c53a0da279ec167c0a8e64dc8c92bc700daf770 (patch) | |
tree | cdd8ce1ee8da8f29b5a4ed3c8ef908dd035a1e1a /apps/user_ldap/user_ldap.php | |
parent | cd5342d0ff2852f5b2efcad67adc4dffc4eed6cc (diff) | |
download | nextcloud-server-3c53a0da279ec167c0a8e64dc8c92bc700daf770.tar.gz nextcloud-server-3c53a0da279ec167c0a8e64dc8c92bc700daf770.zip |
if define, check the userfilter if the user is still allowed
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index a2f4b4ee9e5..204995198bd 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -176,8 +176,12 @@ class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn } $dn = $user->getDN(); + $userFilter = 'objectclass=*'; + if ($this->access->connection->ldapUserFilter !== '') { + $userFilter = $this->access->connection->ldapUserFilter; + } //check if user really still exists by reading its entry - if(!is_array($this->access->readAttribute($dn, ''))) { + if(!is_array($this->access->readAttribute($dn, '', $userFilter))) { $lcr = $this->access->connection->getConnectionResource(); if(is_null($lcr)) { throw new \Exception('No LDAP Connection to server ' . $this->access->connection->ldapHost); |