From: Stephen Gran Date: Sun, 20 Sep 2009 16:07:14 +0000 (+0100) Subject: ahem. Use the right attribute X-Git-Tag: userdir-ldap-0.3.72~5 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=9ece32dabb9affc42e568aade1f0c6ef23c86d2b ahem. Use the right attribute Signed-off-by: Stephen Gran --- diff --git a/ud-generate b/ud-generate index 386dce6..f5279e0 100755 --- a/ud-generate +++ b/ud-generate @@ -1046,7 +1046,7 @@ Attrs = l.search_s(BaseDn, ldap.SCOPE_ONELEVEL, "gid=*",\ # Generate the SubGroupMap and GroupIDMap for x in Attrs: - if x[1].has_key("status") and x[1]['status'] == "disabled": + if x[1].has_key("accountStatus") and x[1]['accountStatus'] == "disabled": continue if x[1].has_key("gidNumber") == 0: continue