Nguyen, Quang wrote:
Hi everybody,
I have spend sometime to understand mozldap and openldap. I have searched the archives using these keyword “mozldap to openldap” or just “mozldap” but found nothing.
I have to port an application currently using mozldap to openldap.
Has anyone done this before, I would like to ask some questions such as:
- I see that the application called ldapssl_advclientauth_init(),
ldapssl_init() if using certificate and call prldap_init() if using simple authentication. The function ldapssl_advclientauth_init() is very big after I traced it down. Is there an equivalent call in openldap?
No, it's a lot easier than that in OpenLDAP.
- Is there any example posted somewhere that my search on google missed
(I could not find any).
I have ported Mozilla/Thunderbird/Seamonkey to use OpenLDAP already.
https://bugzilla.mozilla.org/show_bug.cgi?id=292127
- Is there anything I should be watching for?
MozLDAP provides a single library that is moderately thread-safe. It uses thread-local-storage in a few places as needed. OpenLDAP provides two separate libraries, one non-threaded and one threaded. If your app is threaded you'll need to check which library you've linked and how you use the LDAP * session handles.
- What is the best approach to do this?
For the most part it's a pretty easy transition.
I thank you very much for any help, suggestion I can get.