print " 3) memorial (lock account and disable mail):"
print " 4) active (do not change other settings, you will have to deal with them)"
print " q) return (no change)"
print " 3) memorial (lock account and disable mail):"
print " 4) active (do not change other settings, you will have to deal with them)"
print " q) return (no change)"
l.modify_s(UserDn,[(ldap.MOD_REPLACE,"accountStatus",newstatus)])
Attrs[0][1]["accountStatus"] = [newstatus]
l.modify_s(UserDn,[(ldap.MOD_REPLACE,"accountStatus",newstatus)])
Attrs[0][1]["accountStatus"] = [newstatus]