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:
4a91a8b
)
Sort HostAttrs - this isn't important now, but will let us do things
author
Stephen Gran
<steve@lobefin.net>
Sun, 9 Aug 2009 22:22:06 +0000
(22:22 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 9 Aug 2009 22:22:06 +0000
(22:22 +0000)
like check if the zone file has changed later
Signed-off-by: Stephen Gran <steve@lobefin.net>
ud-generate
patch
|
blob
|
history
diff --git
a/ud-generate
b/ud-generate
index
5ba59d4
..
2319787
100755
(executable)
--- a/
ud-generate
+++ b/
ud-generate
@@
-1083,6
+1083,8
@@
HostAttrs = l.search_s(HostBaseDn, ldap.SCOPE_ONELEVEL, "objectClass=debianSe
if HostAttrs == None:
raise UDEmptyList, "No Hosts"
+HostAttrs.sort(lambda x, y: cmp((GetAttr(x, "hostname")).lower(), (GetAttr(y, "hostname")).lower()))
+
# Generate global things
GlobalDir = GenerateDir + "/"
GenDisabledAccounts(GlobalDir + "disabled-accounts")