Trevor Leffler wrote: > > To the PerlDAP experts... > > I have built perldap 1.4.1 on a linux box against both the Netscape LDAP C 3.0 > and 4.1 SDKs (no, not simultaneously). I have also written two basic search > clients, one in C and one in Perl. They work great when connecting to an LDAP > server on port 389. So far so good. > > I have also modified those same client programs to connect via SSL to a > non-standard port (22636), using my cert7.db and my LDAP username and password. > (I've attached the sources for your perusal/amusement.) The C source compiles > and runs fine. The equivalent Perl script exits with an error. To debug the > problem, I wrote the Perl script to use Mozilla::LDAP::API, so that it would > look very much like my C code. Here is its output: > > % ./mozapi.pl > ldap_simple_bind_s: [81] Can't contact LDAP server > > Now, this sounds like the program is simply unable to reach the server, but I > don't know exactly what causes this error code. I tried emulating this in the C > code by changing the port and hostname, but doing so returns a slightly > different error code: > > % a.out // using an intentionally bad hostname > ldap_simple_bind_s: [91] Can't connect to the LDAP server > > Is this a bug in perldap? Does perldap not support versions 3.0 or 4.1 of the > NS LDAP SDK? Any advice would be appreciated. > > -- > Trevor Leffler, Software Developer
I found a solution, if not an answer to this problem: use LDAP SDK 5.08. I downloaded it from iplanet.com, the site that Netscape points to for getting the (precompiled) C and Java SDKs. --Trevor
