Hi, OpenLDAP developers,
I’ve been able to successfully built OpenLDAP client libraries liblber and libldap for Window 64 bit OS.
I wrote a test program to connect to Microsoft AD (hosted on Win 2008 R2, a 64 bit OS) over SSL.
I made sure the root certificate file is converted to X509 base 64 PEM format. And the certificate file name is named using the hash value returned from “openssl” command.
I made sure I can telnet to the AD host at port 636 from my test machine (where I run my test program). This is to make sure there’s not network connectivity problem between my client test machine and the LDAP server host.
Here’s snippet of my source code:
int debug_flag = -1; // debug all
rc = ldap_set_option( ld, LDAP_OPT_DEBUG_LEVEL, &debug_flag);
rc = ldap_sasl_bind_s( ld, dn, LDAP_SASL_SIMPLE, &passwd, NULL, NULL, NULL);
if (rc != LDAP_SUCCESS)
{
trace("%15s: %s (%s: %d = %s)", "FAILED", "ldap_sasl_bind_s() failed!",
"Return value is", rc, ldap_err2string(rc));
}
However, my OpenLDAP client test program fails with the following error:
0011-12-10 16:08:59 [5296]: FAILED: ldap_sasl_bind_s() failed! (Return value is: -1 = Can't contact LDAP server)
My question is:
I need to troubleshoot this problem. I will need to examine the OpenLDAP log files to find the root cause. Where are the OpenLDAP log files located?
I read that the log file location is configured in slapd.conf. But where is slapd.conf file on Windows? Considering I am not running OpenLDAP server on this test machine.
Any input or feedback will be much appreciated.
Thanks.
Daisy