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

_______________________________________________
dev-tech-ldap mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-ldap

Reply via email to