projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b74de25
)
Import from samosa: Removed superflous whitespace
author
joey
<>
Thu, 18 Nov 2004 16:09:29 +0000
(16:09 +0000)
committer
joey
<>
Thu, 18 Nov 2004 16:09:29 +0000
(16:09 +0000)
ud-useradd
patch
|
blob
|
history
diff --git
a/ud-useradd
b/ud-useradd
index
9971549
..
88d6d66
100755
(executable)
--- a/
ud-useradd
+++ b/
ud-useradd
@@
-9,7
+9,7
@@
from userdir_gpg import *;
# this, one is to fetch all the entires and pick the highest, the other
# is to randomly guess uids until one is free. This uses the former.
# Regrettably ldap doesn't have an integer attribute comparision function
# this, one is to fetch all the entires and pick the highest, the other
# is to randomly guess uids until one is free. This uses the former.
# Regrettably ldap doesn't have an integer attribute comparision function
-# so we can only cut the search down slightly
+# so we can only cut the search down slightly
def GetFreeID(l):
HighestUID = 1400;
Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,
def GetFreeID(l):
HighestUID = 1400;
Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,