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 (parent:
8195c17
)
Import from samosa: case sensitive LDAP attributes
author
joey
<>
Wed, 27 Oct 2004 12:03:39 +0000
(12:03 +0000)
committer
joey
<>
Wed, 27 Oct 2004 12:03:39 +0000
(12:03 +0000)
ud-groupadd
patch
|
blob
|
history
diff --git
a/ud-groupadd
b/ud-groupadd
index
94b25e1
..
04af160
100755
(executable)
--- a/
ud-groupadd
+++ b/
ud-groupadd
@@
-13,10
+13,10
@@
from userdir_gpg import *;
def GetFreeID(l):
HighestUID = 1000;
Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,
def GetFreeID(l):
HighestUID = 1000;
Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,
- "gid
number>="+str(HighestUID),["gidn
umber"]);
+ "gid
Number>="+str(HighestUID),["gidN
umber"]);
HighestUID = 0;
for I in Attrs:
HighestUID = 0;
for I in Attrs:
- ID = int(GetAttr(I,"gid
n
umber","0"));
+ ID = int(GetAttr(I,"gid
N
umber","0"));
if ID > HighestUID and ID < 60000:
HighestUID = ID;
return HighestUID + 1;
if ID > HighestUID and ID < 60000:
HighestUID = ID;
return HighestUID + 1;
@@
-59,6
+59,6
@@
Dn = "gid=" + Group + "," + BaseDn;
print "Updating LDAP directory..",
sys.stdout.flush();
l.add_s(Dn,[("gid",Group),
print "Updating LDAP directory..",
sys.stdout.flush();
l.add_s(Dn,[("gid",Group),
- ("gid
n
umber",str(Id)),
+ ("gid
N
umber",str(Id)),
("objectclass","top"),
("objectclass","posixGroup")]);
("objectclass","top"),
("objectclass","posixGroup")]);