use the right attribute for member retrieval

This commit is contained in:
Arthur Schiwon 2012-04-16 13:26:54 +02:00
parent 02f4e78f3e
commit e1948c651b
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ class OC_GROUP_LDAP extends OC_Group_Backend {
public function __construct() {
$this->ldapGroupFilter = OC_Appconfig::getValue('user_ldap', 'ldap_group_filter', '(objectClass=posixGroup)');
$this->ldapGroupDisplayName = OC_Appconfig::getValue('user_ldap', 'ldap_group_display_name', 'cn');
$this->ldapGroupMemberAttr = OC_Appconfig::getValue('user_ldap', 'ldap_group_member_attr', 'memberUid');
}
/**
@ -83,7 +84,7 @@ class OC_GROUP_LDAP extends OC_Group_Backend {
$this->ldapGroupDisplayName.'='.$gid
));
return $this->retrieveList($filter, OC_LDAP::conf('ldapUserDisplayName'));
return $this->retrieveList($filter, $this->ldapGroupMemberAttr);
}
/**