I'm working on a Thunderbird extension and like to interact with a LDAP
server, but have a hard time to get it work. I successfully searched
entries in the directory using nsILDAPSyncQuery but I can't figure out
how to modify entries on the LDAP server.
Any pointers to docs or sample code would be very appreciated.
Andi
Hmm, never new about that interface. Guess I focus on the address book
too much.
> Any pointers to docs or sample code would be very appreciated.
The nsILDAPSyncQuery actually interfaces to the code in:
http://lxr.mozilla.org/seamonkey/source/directory/xpcom/base/
which is a wrapper around the LDAP C-SDK
(http://wiki.mozilla.org/LDAP_C_SDK).
Although the LDAP C-SDK has full read and write functionality, the xpcom
wrapper hasn't yet got functions for being able to write to ldap
directories (https://bugzilla.mozilla.org/show_bug.cgi?id=124897).
I'm not sure how exposed the c-sdk interfaces are, but I doubt you'd be
able to reach them easily.
Standard8