Sort the right list
authorStephen Gran <steve@lobefin.net>
Sun, 9 Aug 2009 23:42:31 +0000 (00:42 +0100)
committerStephen 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

index b57b0fd..0b67ff8 100755 (executable)
@@ -1067,7 +1067,7 @@ PasswdAttrs = l.search_s(BaseDn, ldap.SCOPE_ONELEVEL, "uid=*",\
 if PasswdAttrs is None:
    raise UDEmptyList, "No Users"
 
-HostAttrs.sort(lambda x, y: cmp((GetAttr(x, "uid")).lower(), (GetAttr(y, "uid")).lower()))
+PasswdAttrs.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",\