36.5. slapi_pwpolicy_make_response_control()
Sends back detailed information about password policies.
#include "slapi-plugin.h" int slapi_pwpolicy_make_response_control (Slapi_PBlock *pb, int seconds, int logins, int error)
This function takes the following parameter:
|
pb
| Parameter block. |
This function returns any of the following values:
LDAP_PWPOLICY_PWDEXPIRED(0), if the password for the entry has expired.LDAP_PWPOLICY_ACCTLOCKED(1), if the account is locked (after repeated failed login attempts).LDAP_PWPOLICY_CHGAFTERRESET(2), if the password must be changed after an administrator as reset it.LDAP_PWPOLICY_PWDMODNOTALLOWED(3), if a password cannot be modified by the user.LDAP_PWPOLICY_MUSTSUPPLYOLDPWD(4), if the old password is necessary for a modification.LDAP_PWPOLICY_INVALIDPWDSYNTAX(5), if the password violates the policy; e.g., not using special characters or capital letters if they are required.LDAP_PWPOLICY_PWDTOOSHORT(6), if the new password is shorter than the minimum length set by the policy.LDAP_PWPOLICY_PWDTOOYOUNG(7), if there has been a minimum age set before a password can be modified.LDAP_PWPOLICY_PWDINHISTORY(8), if old passwords are stored in history.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.