Added support for LDAP Posix Groups (OpenLDAP with memberUid)

This commit is contained in:
Frederic Guillot
2016-04-30 20:38:16 -04:00
parent 2afd7ee834
commit 3872dee261
12 changed files with 516 additions and 33 deletions

View File

@@ -39,12 +39,11 @@ class Group
* @access public
* @param Client $client
* @param string $query
* @return array
* @return LdapGroupProvider[]
*/
public static function getGroups(Client $client, $query)
{
$className = get_called_class();
$self = new $className(new Query($client));
$self = new static(new Query($client));
return $self->find($query);
}
@@ -111,7 +110,7 @@ class Group
throw new LogicException('LDAP full name attribute empty, check the parameter LDAP_GROUP_ATTRIBUTE_NAME');
}
return LDAP_GROUP_ATTRIBUTE_NAME;
return strtolower(LDAP_GROUP_ATTRIBUTE_NAME);
}
/**