From: Stephen Gran Date: Sun, 9 Aug 2009 23:42:31 +0000 (+0100) Subject: Sort the right list X-Git-Tag: userdir-ldap-0.3.71~4 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=002a05d5273a6ab1a606a00c404cffa973c23f9c Sort the right list Signed-off-by: Stephen Gran --- diff --git a/ud-generate b/ud-generate index b57b0fd..0b67ff8 100755 --- 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" -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",\