projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add changelog entry for global mail-default-options generation
[mirror/userdir-ldap.git]
/
ud-useradd
diff --git
a/ud-useradd
b/ud-useradd
index
d6114ba
..
fcda26f
100755
(executable)
--- a/
ud-useradd
+++ b/
ud-useradd
@@
-51,7
+51,7
@@
def ShouldIgnoreID(uid):
# search through all UIDs.
def GetFreeID(l):
Attrs = l.search_s(BaseBaseDn,ldap.SCOPE_SUBTREE,
# search through all UIDs.
def GetFreeID(l):
Attrs = l.search_s(BaseBaseDn,ldap.SCOPE_SUBTREE,
- "
uidNumber=*
",["uidNumber", "gidNumber", "uid"]);
+ "
(|(uidNumber=*)(gidNumber=*))
",["uidNumber", "gidNumber", "uid"]);
HighestUID = 0;
gids = [];
uids = [];
HighestUID = 0;
gids = [];
uids = [];