[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Porting mozldap to openldap

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:

1. 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.

2. 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.


3. 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.

4. 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.

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/