summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8c4e550)
raw | patch | inline | side by side (parent: 8c4e550)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Sep 2009 10:10:48 +0000 (10:10 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Sep 2009 10:10:48 +0000 (10:10 +0000) |
Closes: #696
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14232 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14232 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/groups/class_groupGeneric.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/groups/class_groupGeneric.inc b/gosa-core/plugins/admin/groups/class_groupGeneric.inc
index 6857dba5ddbfe981c32e97706480047ee3cca667..979f9026982766439ace68a5b56351d14cd45cb1 100644 (file)
} else {
/* Calculate new, lock uids */
$wait= 10;
- while (get_lock("uidnumber") != ""){
+ while (get_lock("gidnumber") != ""){
sleep (1);
/* timed out? */
break;
}
}
- add_lock ("uidnumber", "gosa");
+ add_lock ("gidnumber", "gosa");
$this->gidNumber= $this->get_next_id("gidNumber", $this->dn);
}
}
}
/* Remove uid lock */
- del_lock ("uidnumber");
+ del_lock ("gidnumber");
/* Post that we've done*/
$this->handle_post_events($mode);
$ldap->cd ($this->config->current['BASE']);
if (preg_match('/gidNumber/i', $attrib)){
$oc= "posixGroup";
+ $att= "gidNumberBase";
} else {
$oc= "posixAccount";
+ $att= "uidNumberBase";
}
$ldap->search ("(&(objectClass=$oc)($attrib=*))", array("$attrib"));
/* Find out next free id near to UID_BASE */
if ($this->config->get_cfg_value("baseIdHook") == ""){
- $base= $this->config->get_cfg_value("uidNumberBase");
+ $base= $this->config->get_cfg_value($att);
} else {
/* Call base hook */
$base= get_base_from_hook($dn, $attrib);