ADsGetObject() returns an error

Discussion in 'Active Directory' started by Daby Bo, Apr 26, 2012.

  1. Daby Bo

    Daby Bo Guest

    Hi.

    I have some problems with ADsGetObject().

    ADsGetObject() returns an error: "There is a naming violation." HRESULT=0x80072037

    I use it in this way:


    HRESULT hResult = ADsGetObject( _T("LDAP://<SID=S-1-5-21-3090688366-220602789-926701516-1348>"), IID_IADsUser, reinterpret_cast<void**>(&ObjADs) );

    This code works fine except one customer. What it could be?

    BTW, something like this works good: ADsGetObject("LDAP://<GUID=.....>")


    Thank you.
     
    Daby Bo, Apr 26, 2012
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.