Jan Synacek wrote:
There are multiple error codes defined as (-1) in ldap.h. When you call ldap_result() followed by a ldap_get_option(ld, LDAP_OPT_RESULT_CODE, &err) how do you distinguish between the meanings of -1?
Several constants are defined as -1, but only LDAP_SERVER_DOWN is returned as an LDAP result code to the client. return(LDAP_OPT_ERROR) is specific to to ldap_<get/set>_option(), if that's what you mean.