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

ldap_simple_bind_s error codes



Hi All,

Is there any way to find out the exact error message in case of bind failure using any of the OpenLDAP calls?

What i would like achieve by this is to know exactly why the bind failed? either due to password expire or account locked or account disabled or user not found etc.

After googling a bit i found a sol

1. http://forum.java.sun.com/thread.jspa?messageID=4227692 ==> says to use ldap_get_option() to get the error string and then parse and extract the error codes. To my understanding this is an extended error message

Is it reliable to depend on the error messages?

Thanks in advance
becks