HI,

To supply more information about my problem, I had tried to call ldap_search_s() like the following:

ldap_search_s (ld, "LDAP://<SID=S-X-X...>",LDAP_SCOPE_BASE, NULL, attrs, 0, &result);

I am always getting invalid parameter errors. My question is:

1) Is it required that dn field has to be in "dc=x,dc=y" format? Is "LDAP://<SID=S...>" an invalid format?
2) when I specify the base as LDAP_SCAPE_BASE, I assume that I want the base object itself, right? Can I specify filter as NULL then?


Thank you in advance for your help!

Yimin
                        

Yimin Chen wrote:
Hi,

I am not sure if this is right forum for the requestion, but I would really appreciate it if you could give me some suggestions.

Is there a way that I can use netscape LDAP API to bind to an object in Active Direcoty, using an object's SID? The constructed SID will be in the form of "LDAP://<SID=S-X-XX....>", but there is seem to be an API that I can use to retrieve this object only, giving the extract object id.

Thanks!
Yimin


_______________________________________________ mozilla-directory mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-directory

Reply via email to