Skip to content

Commit

Permalink
Merge pull request #11499 from owncloud/ldap-warningwhenuidismissing
Browse files Browse the repository at this point in the history
Log warning when no uid was found for user
  • Loading branch information
LukasReschke committed Oct 10, 2014
2 parents 4faa424 + 59f9107 commit 4a4ea1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/user_ldap/group_ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ public function getUserGroups($uid) {
$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
Expand Down

0 comments on commit 4a4ea1d

Please sign in to comment.