OpenDS: Which attribute tells that an account was locked due to password expiration

▼魔方 西西 提交于 2019-12-25 01:16:34

问题


I have requirement to show status (locked or unlocked ) of all accounts in OpenDS 2.2. I have come to know that pwdAccountLockedTime is present if account gets locked due to too many unsuccessful attempts. So by checking this attribute, I am able to pick account locked due to this reason. Now I need to identify accounts which were locked due to password expiration. Is there any attribute which tells this?

I need to retrieve this attribute in my java client application.

Any help in this regards would be greatly appreciated.

P.S. - I have checked other threads and forums but none of the solutions given seem to be working - like checking pwdLockedTime (I could not find this attribute).


回答1:


You can check the status of an account and get details of locked account using the manage-account utility.

When the password has expired, there is no marker that it's locked. The server uses the pwdChangedTime and the currentTime to see if the difference exceeds the expiration time.

Kind regards,

Ludovic.



来源:https://stackoverflow.com/questions/11222684/opends-which-attribute-tells-that-an-account-was-locked-due-to-password-expirat

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!