Overriding password policy and unlocking accounts
You can issue the provided commands to override password policy and unlocking accounts.
A directory administrator can override normal password policy behavior for specific entries by modifying the password policy operational attributes and using the server administration control (-k option of the LDAP command line utilities).
idsldapmodify –D cn=root –w ? -k
dn: uid=wasadmin,cn=users,o=sample
changetype: modify
replace: pwdChangedTime
pwdChangedTime: 22000101000000Zidsldapmodify –D cn=root –w ? -k
dn: uid=user1,cn=users,o=sample
changetype: modify
delete: pwdAccountLockedTime
-
delete: pwdFailureTimeidsldapmodify –D cn=root –w ? -k
dn: uid=user1,cn=users,o=sample
changetype: modify
replace: pwdChangedTime
pwdChangedTime: yyyymmddhhss.Z
-
delete: pwdExpirationWarned
-
delete: pwdGraceUseTimeidsldapmodify –D cn=root –w ? -k
dn: uid=user1,cn=users,o=sample
changetype: modify
delete: pwdReset
idsldapmodify –D cn=root –w ? -k
dn: uid=user2,cn=users,o=sample
changetype: modify
replace: pwdReset
pwdReset: TRUEAn account can be administratively locked by setting the ibm-pwdAccountLocked operational attribute to TRUE.The account can be unlocked by setting the attribute to FALSE.Unlocking an account in this way does not affect the state of the account with respect to being locked due to excessive password failures or an expired password.
idsldapmodify –D uid=useradmin,cn=users,o=sample –w ?
dn: uid=user1,cn=users,o=sample
changetype: modify
replace: ibm-pwdAccountLocked
ibm-pwdAccountLocked: TRUETo
unlock the account:
idsldapmodify –D uid=useradmin,cn=users,o=sample –w ?
dn: uid=user1,cn=users,o=sample
changetype: modify
replace: ibm-pwdAccountLocked
ibm-pwdAccountLocked: FALSEIf the account is locked because the attribute ibm-pwdAccountLocked is set to TRUE and if the administrator clears this attribute (sets it to FALSE) and uses the administrative control (-k option), then the account is completely unlocked. The pwdAccountLockedTime and pwdFailureTime attributes are also cleared and reset.
userPassword attribute and password policy related
operational attributes in the same ldap modify operation.