ahem. Use the right attribute
authorStephen Gran <steve@lobefin.net>
Sun, 20 Sep 2009 16:07:14 +0000 (17:07 +0100)
committerStephen Gran <steve@lobefin.net>
Sun, 20 Sep 2009 16:07:14 +0000 (17:07 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
ud-generate

index 386dce6..f5279e0 100755 (executable)
@@ -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