I'm trying to pull the password policy response message from ldap_bind() method: password is expiring, password expired etc.
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.
I set the password policy request server control before the bind with ldap_set_option(). Any workaround or what am I doing wrong?