Hello,
I have written a COM dll that makes use of the Netscape Directory SDK
version 3.0 for C. The COM dll is used from ASP pages and encapsulates all
the LDAP comms to Netscape Directory Server.

It works fine with SSL disabled. With SSL enabled and multiple users logging
on simultaneously (and hence requiring authentication simultaneously) an
exception is thrown by the SDK. i.e. if there are 2 logins occurring close
together, session #1 succeeds and session #2 throws an exception. It appears
to be happening mostly on the bind (but I think it has also has happened on
other calls made during the session). ldapssl_client_init() and
ldapssl_init() are OK but not the asynchronous ldap_simple_bind().

A new instance of my COM object is created for every login attempt. I have
tried to load the nsldapssl32v30.dll dynamically, I have used a mutex so
that I have only one active session at a time, and still get the
problem....I'm out of ideas? I have noticed that the certificate database,
cert7.db, is only accessed once so I am guessing that the netscape SDK keeps
some state somewhere that I am not properly releasing???

ANY thoughts on this problem are welcome! Any pointers to the SDK source
code (if available?)
Thanks,
Nadine



Reply via email to