oracle - Getting more specific error messages with PHP LDAP - OID -
i'm using php connect oracle oid ldap - , i'm testing different account types; in case know account expired (oid error 9000 - http://docs.oracle.com/cd/e15523_01/oid.1111/e10029/trblsht.htm#chdjhchc) php returning me error 49 (ldap_errno) generic invalid credentials error.
is there function or method more verbose messages server?
iirc, oid error codes such aren't transmitted across wire (though wireshark able tell you). however, there concept of extended error.
you should able obtain extended code (and string) using ldap_get_option function in php, using ldap_opt_error_number , ldap_opt_error_string options.
the above should sufficient give 'extended' diagnostic; remember may directory-implementation-specific.
i see on http://www.php.net/manual/en/function.ldap-get-option.php there similar (though ad) example, makes use (apparently undocumented) ldap_opt_diagnostic_message.
Comments
Post a Comment