[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_bind() extended response for password policy



2013.07.28 20:42, Howard Chu rašė:
Andrius Kulbis wrote:
Hello,

I'm trying to pull the password policy response message from ldap_bind()
method.

While checking the packet content from OpenLDAP after ldap_bind()
request, with Wireshark, there is a control hooked to the ldap_bind()
response, were the message code and message text about password
expiration is, but I can't manage to parse that message from response.

AFAIK, the OpenLDAP C API ldap_get_option() method doesn't have
LDAP_OPT_SERVER_CONTRLOLS case implementation, and I can't get the
PASSWORDPOLICYRESPONSE, although I have set the PASSWORDPOLICYREQUEST
before the bind.

Use ldap_parse_result().


But if I want to get the response data after the bind request, what would be the LDAPresult object required by ldap_parse_result()?


Regards,
Andrius Kulbis