summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adfd241)
raw | patch | inline | side by side (parent: adfd241)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Oct 2009 15:10:06 +0000 (15:10 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Oct 2009 15:10:06 +0000 (15:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14495 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc
index f933d29fdb0ac6d6cf24588b8a7d917783a2f15f..1ea0509e950cdbf38401676fd65b663a07ecb60d 100644 (file)
}
+ function get_next_id_new($attrib, $dn)
+ {
+ /* ID to skip */
+ $nobody= 65534;
+
+ # again:
+ # Look for ID map entry (objectClass=sambaUnixIdPool)
+
+ # If it does not exist, create one with these defaults
+ #dn: ou=idmap,$BASE
+ #objectClass: organizationalUnit
+ #objectClass: sambaUnixIdPool
+ #ou: idmap
+ #uidNumber: $minId
+ #gidNumber: $minId
+
+ # Take $attrib, modify it to [$attrib] + 1
+ # -> if $attrib does not exist -> bail out
+ # -> if this works, return [$attrib]
+ # -> if this does not work: goto again for max 3 times
+ # -> if this fails -> bail out
+ }
+
+
function get_next_id($attrib, $dn)
{
$ids= array();
msg_dialog::display(_("Error"), _("Cannot allocate a free ID!"), ERROR_DIALOG);
exit;
}
-
}
+
function reload()
{
/* Set base for all searches */