Skip to content

Commit

Permalink
Ticket #49082 - Adjusted the CI test case to the fix.
Browse files Browse the repository at this point in the history
Description: Fix password expiration related shadow attributes
  • Loading branch information
nhosoi committed Jan 11, 2017
1 parent 5bcd966 commit 5a6a5a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dirsrvtests/tests/tickets/ticket548_test.py
Expand Up @@ -54,6 +54,13 @@ def set_global_pwpolicy(topology_st, min_=1, max_=10, warn=3):
log.error('Failed to set passwordMinAge: error ' + e.message['desc'])
assert False

log.info(" Set global password Expiration -- on\n")
try:
topology_st.standalone.modify_s(DN_CONFIG, [(ldap.MOD_REPLACE, 'passwordExp', 'on')])
except ldap.LDAPError as e:
log.error('Failed to set passwordExp: error ' + e.message['desc'])
assert False

log.info(" Set global password Max Age -- %s days\n" % max_)
try:
topology_st.standalone.modify_s(DN_CONFIG, [(ldap.MOD_REPLACE, 'passwordMaxAge', '%s' % max_secs)])
Expand Down

0 comments on commit 5a6a5a1

Please sign in to comment.