I write a dll using Novel CLDAP SDK, because no dev files from openLDAP could be use in windows.
basically, they are same, and I found the same problems yet.
ldap_simple_bind could not work , but ldap_simple_bind_s is ok. the former return "Operations Error",
maybe it is the problem of LDAP Server, ( debian lenny, openLDAP 2.4.11 deb) gtalk:freeespeech@gmail.com
owen nirvana writes:
ldap_simple_bind could not work , but ldap_simple_bind_s is ok. the former return "Operations Error",
You neglected to show any code, but here is my guess: You are treating the return value from ldap_simple_bind() is an LDAP result code instead of as a message ID. The first LDAP operation on a connection likely gets message ID #1, and LDAPResult.resultCode.operationsError == 1.
Read the manual: ldap_simple_bind_s() is a synchronous routine and thus returns an LDAP result code. ldap_simple_bind() is asynchronous and thus returns a message ID you are supposed to pass to ldap_result().
openldap-technical@openldap.org