From 0cfdea3f97ee98ce16756d55356aca8bdb51f898 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 27 Nov 2005 22:33:08 +0000 Subject: [PATCH] fixed error in user-creation under ldap: account_id of group was send negative to the ldap-server --- phpgwapi/inc/class.accounts_ldap.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 5647857b45..0b8652fd47 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -891,7 +891,7 @@ foreach($account_info['account_groups'] as $key => $value) { // search for the group - $filter = 'gidnumber=' . (int)$value; + $filter = 'gidnumber=' . abs($value); $justThese = array('memberuid'); $sri = ldap_search($this->ds, $this->group_context, $filter, $justThese); if($sri)