diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-10 12:42:31 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-10 12:42:31 +0200 |
commit | 4a4ea1dae93f97615697e2fac241ea13eb321d07 (patch) | |
tree | 1c2df5a10a0db36880a8b8dd32a9c0c7df75e48a /apps | |
parent | 4faa4241578e800e0982dac7e7a6a060dc270cc3 (diff) | |
parent | 59f9107dd9497d2eb9bd61f5eb8d893dd8fcb766 (diff) | |
download | nextcloud-server-4a4ea1dae93f97615697e2fac241ea13eb321d07.tar.gz nextcloud-server-4a4ea1dae93f97615697e2fac241ea13eb321d07.zip |
Merge pull request #11499 from owncloud/ldap-warningwhenuidismissing
Log warning when no uid was found for user
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/group_ldap.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index 0d3a70575ba..48d097c3600 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -283,6 +283,10 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface { $uid = $userDN; } else if(strtolower($this->access->connection->ldapGroupMemberAssocAttr) === 'memberuid') { $result = $this->access->readAttribute($userDN, 'uid'); + if ($result === false) { + \OCP\Util::writeLog('user_ldap', 'No uid attribute found for DN ' . $userDN . ' on '. + $this->access->connection->ldapHost, \OCP\Util::DEBUG); + } $uid = $result[0]; } else { // just in case |