Re: Issues with LDAP XPCOM API in Thunderbird

"[email protected]" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Organization http://groups.google.com
Message-ID <[email protected]>
On Sep 10, 11:35 pm, Mark Banner <[email protected]>
wrote:
> > So I played a bit with the low-level API, i.e. nsILDAPConnection,
> > nsILDAPOperation and nsILDAPMessageListener in particular.
> > I didn't go very far as calling nsILDAPOperation.simpleBind()
> > constantly threw a 0x8059005b error.
>
> That's some sort of connection error, see:

Indeed, I had an issue with the LDAP server itself :-/
So, now I can sucessfully make an LDAP query by running 'ldapshell.js'
script in the XPC shell.

Yet, my goal is to run it in the autoconfiguration (MCD) script --
replacing nsILDAPSyncQuery as you understood.
I copied 'ldapshell.js' source code into my autoconfiguration script
but it didn't work correctly.
It is stuck in the while() loop [1] of runEventPump():

    while (pumpRunning) {
        evQ.processPendingEvents();
    }

It looks like stopEventPump() is never called -- as it should be in
onLDAPInit() call-back in particular. Using a network sniffer, I see
no LDAP TCP connection setup at all...

When it comes to proxy objects and event queues, is there something
special with the autoconfiguration JavaScript "environment" ?

[1] http://mxr.mozilla.org/mozilla1.8/source/directory/xpcom/tests/ldapshell.js#66

Regards,

--
Damiano ALBANI
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.