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:
cb4b05f
)
Sort the right list
author
Stephen Gran
<steve@lobefin.net>
Sun, 9 Aug 2009 23:42:31 +0000
(
00:42
+0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 9 Aug 2009 23:42:31 +0000
(
00:42
+0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
ud-generate
patch
|
blob
|
history
diff --git
a/ud-generate
b/ud-generate
index
b57b0fd
..
0b67ff8
100755
(executable)
--- a/
ud-generate
+++ b/
ud-generate
@@
-1067,7
+1067,7
@@
PasswdAttrs = l.search_s(BaseDn, ldap.SCOPE_ONELEVEL, "uid=*",\
if PasswdAttrs is None:
raise UDEmptyList, "No Users"
-
Host
Attrs.sort(lambda x, y: cmp((GetAttr(x, "uid")).lower(), (GetAttr(y, "uid")).lower()))
+
Passwd
Attrs.sort(lambda x, y: cmp((GetAttr(x, "uid")).lower(), (GetAttr(y, "uid")).lower()))
# Fetch all the hosts
HostAttrs = l.search_s(HostBaseDn, ldap.SCOPE_ONELEVEL, "objectClass=debianServer",\