Hi!
I'd like to do a syncronous LDAP query in my Thunderbird extension.
Is there any example JavaScript code for this?
I've tried to use the @mozilla.org/ldapsyncquery;1 component but this component doesn't seem to be avaliable in thunderbird.
At some point, I should move the ldapsyncquery code into the XPCOM SDK, but it requires some factoring first, iirc.
Is there any way to use the async searchExt method of the nsILDAPOperation to implement synchronous queries? (E.g. Kick off an async search request and wait for the result message.) Is there any documentation / example code on how to achieve this?
I suppose you could reimplement the algorithm in ldapsyncquery in JS. However, in general, I've found that most ldap stuff is pretty reasonable to solve with an async algorithm. If you can post explaining what you're trying to accomplish, I might be able to suggest an alternative solution.
Dan _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
