projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixs
[mirror/userdir-ldap.git]
/
ud-useradd
diff --git
a/ud-useradd
b/ud-useradd
index
d1c6b79
..
4d929e3
100755
(executable)
--- a/
ud-useradd
+++ b/
ud-useradd
@@
-12,7
+12,8
@@
from userdir_gpg import *;
# so we can only cut the search down slightly
def GetFreeID(l):
HighestUID = 1400;
# so we can only cut the search down slightly
def GetFreeID(l):
HighestUID = 1400;
- Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,"uidnumber>="+str(HighestUID),["uidnumber"]);
+ Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,\
+ "uidnumber>="+str(HighestUID),["uidnumber"]);
HighestUID = 0;
for I in Attrs:
ID = int(GetAttr(I,"uidnumber","0"));
HighestUID = 0;
for I in Attrs:
ID = int(GetAttr(I,"uidnumber","0"));