mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
"fixed bug reported from sim <sim-at-compulab.co.il>: _read_group not searching for posixGroup, which makes problems if you have identical numbers and context for users and groups
also added a filter for objectclass=posixAccount to _read_user"
This commit is contained in:
parent
88548c7767
commit
a55b1a5163
@ -399,7 +399,7 @@ class accounts_backend
|
|||||||
*/
|
*/
|
||||||
function _read_group($account_id)
|
function _read_group($account_id)
|
||||||
{
|
{
|
||||||
$sri = ldap_search($this->ds, $this->group_context, 'gidnumber=' . abs($account_id),
|
$sri = ldap_search($this->ds, $this->group_context,'(&(objectClass=posixGroup)(gidnumber=' . abs($account_id).'))',
|
||||||
array('dn','gidnumber','cn','objectclass','mail'));
|
array('dn','gidnumber','cn','objectclass','mail'));
|
||||||
|
|
||||||
$data = ldap_get_entries($this->ds, $sri);
|
$data = ldap_get_entries($this->ds, $sri);
|
||||||
@ -443,7 +443,7 @@ class accounts_backend
|
|||||||
*/
|
*/
|
||||||
function _read_user($account_id)
|
function _read_user($account_id)
|
||||||
{
|
{
|
||||||
$sri = ldap_search($this->ds, $this->user_context, 'uidnumber=' . (int)$account_id,
|
$sri = ldap_search($this->ds, $this->user_context, '(&(objectclass=posixAccount)(uidnumber=' . (int)$account_id.'))',
|
||||||
array('dn','uidnumber','uid','gidnumber','givenname','sn','cn','mail','userpassword',
|
array('dn','uidnumber','uid','gidnumber','givenname','sn','cn','mail','userpassword',
|
||||||
'shadowexpire','shadowlastchange','homedirectory','loginshell'));
|
'shadowexpire','shadowlastchange','homedirectory','loginshell'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user