Don't try to use memberof on posixgroups, since it doesn't support

memberUid attributes.

Signed-off-by: Andreas Pflug <dev@admin4.org>
This commit is contained in:
Andreas Pflug 2017-01-31 01:40:09 +01:00
parent bbcb1dd2e0
commit b64e48335f
1 changed files with 3 additions and 1 deletions

View File

@ -496,9 +496,11 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface {
// if possible, read out membership via memberOf. It's far faster than
// performing a search, which still is a fallback later.
// memberof doesn't support memberuid, so skip it here.
if(intval($this->access->connection->hasMemberOfFilterSupport) === 1
&& intval($this->access->connection->useMemberOfToDetectMembership) === 1
) {
&& strtolower($this->access->connection->ldapGroupMemberAssocAttr) !== 'memberuid'
) {
$groupDNs = $this->_getGroupDNsFromMemberOf($userDN);
if (is_array($groupDNs)) {
foreach ($groupDNs as $dn) {