- print "Min password length: %d" % pol.min_password_length
- print "Password history length: %d" % pol.password_history
- if pol.user_must_logon_to_change_password:
- print "User must logon to change password: %d" % pol.user_must_logon_to_change_password
- if pol.maximum_password_age:
- print "Maximum password age: %d" % pol.maximum_password_age
- if pol.minimum_password_age:
- print "Minimum password age: %d" % pol.minimum_password_age
- if pol.lockout_duration:
- print "Lockout duration: %d" % pol.lockout_duration
- if pol.reset_count_minutes:
- print "Reset Count Minutes: %d" % pol.reset_count_minutes
- if pol.bad_lockout_minutes:
- print "Bad Lockout Minutes: %d" % pol.bad_lockout_minutes
- if pol.disconnect_time:
- print "Disconnect Time: %d" % pol.disconnect_time
- if pol.refuse_machine_password_change:
- print "Refuse Machine Password Change: %d" % pol.refuse_machine_password_change
+ print "Min password length: %d" % pol['min password length']
+ print "Password history length: %d" % pol['password history']
+ if pol['user must logon to change password']:
+ print "User must logon to change password: %d" % pol['user must logon to change password']
+ if pol['maximum password age']:
+ print "Maximum password age: %d" % pol['maximum password age']
+ if pol['minimum password age']:
+ print "Minimum password age: %d" % pol['minimum password age']
+ if pol['lockout duration']:
+ print "Lockout duration: %d" % pol['lockout duration']
+ if pol['reset count minutes']:
+ print "Reset Count Minutes: %d" % pol['reset count minutes']
+ if pol['bad lockout attempt']:
+ print "Bad Lockout Minutes: %d" % pol['bad lockout attempt']
+ if pol['disconnect time']:
+ print "Disconnect Time: %d" % pol['disconnect time']
+ if pol['refuse machine password change']:
+ print "Refuse Machine Password Change: %d" % pol['refuse machine password change']