Index: class.accounts_ldap.inc.php =================================================================== RCS file: /cvsroot/phpgwapi/phpgwapi/inc/Attic/class.accounts_ldap.inc.php,v retrieving revision 1.101.2.13.2.39 diff -u -d -r1.101.2.13.2.39 class.accounts_ldap.inc.php --- class.accounts_ldap.inc.php 16 Nov 2005 10:00:55 -0000 1.101.2.13.2.39 +++ class.accounts_ldap.inc.php 30 Nov 2005 10:39:43 -0000 @@ -790,16 +792,6 @@ //$entry['loginshell'] = $this->get_loginshell($account_info['loginshell']); - // special gidnumber handling - if ($GLOBALS['phpgw_info']['server']['ldap_group_id']) - { - $enty['gidnumber'] = $GLOBALS['phpgw_info']['server']['ldap_group_id']; - } - else - { - $entry['gidnumber'] = $account_info['account_id']; - } - $oldEntry = $this->account_exists($account_info['account_id'], $dn); if ($oldEntry) // found an existing entry in LDAP @@ -907,6 +900,15 @@ } else // entry not yet in LDAP { + //XXX Caies : we add the gidnumber ONLY if we create the account, else don't touch it ! + if ($GLOBALS['phpgw_info']['server']['ldap_group_id']) + { + $enty['gidnumber'] = $GLOBALS['phpgw_info']['server']['ldap_group_id']; + } + else + { + $entry['gidnumber'] = $account_info['account_id']; + } $this->add_LDAP_Entry($dn, $entry); } }