#include <ldap.h> int ldap_parse_pwdpolicy_response( LDAPControl **serverControls, int *controlerr, int *controlwarn, int *controlres)
The ldap_parse_pwdpolicy_response() function is used to obtain the LDAP password policy error or warning codes from the password policy response control asociated with an LDAPMessage message. The two possible warnings are timebeforeexpiration and graceloginsremaining. For warnings, the function can also be used to obtain the LDAP password policy warning result code (the number of seconds value) associated with the warning code.
No IBM® i authority is required. All authority checking is done by the LDAP server.
LDAP_PASSWORD_EXPIRED | 0x03 |
LDAP_ACCOUNT_LOCKED | 0x04 |
LDAP_CHANGE_AFTER_RESET | 0x05 |
LDAP_TIME_BEFORE_EXPIRE | 0x06 |
LDAP_NEED_OLD_PASSWORD | 0x07 |
LDAP_INVALID_PASS_SYNTAX | 0x08 |
LDAP_PASSWORD_TOO_SHORT | 0x09 |
LDAP_PASSWORD_TOO_YOUNG | 0x0A |
LDAP_PASSWORD_IN_HISTORY | 0x0B |
LDAP_TIME_BEFORE_EXPIRE | 0x01 |
LDAP_GRACE_LOGINS | 0x02 |
The ldap_parse_pwdpolicy_response() function returns an LDAP error code if it encounters an error parsing the result. See LDAP Client API Error Conditions for possible LDAP error code values. The error code indicates if the operation completed successfully.
[ Back to top | LDAP APIs | APIs by category ]