ADsGetObject returns ERROR_BAD_NETPATH in some AD


hi 

i using adsgetobject adsi function interface pointer group/user providing winnt path. same working in of cases. in case of 1 customer same returning error_bad_netpath.

here point noted able retrieve ldap distinguished name winnt path of object using iadsnametranslate interface but adsgetobject function fails bind object above mentioned error.

what possible reason unpredictable behaviour same working in other cases.

thanks in advance.


rahul pathak

the nametranslate interface can convert names in form domain\ntname distinguished names (and other forms), domain netbios name of domain , ntname samaccountname (pre-windows 2000 name) of object. example, need include trailing "$" in computer object names.

also, set method of  nametranslate accepts form of name, domain\ntname, directly, don't see need bind object adsgetobject. need investigate old work adsgetobject see if can determine make raise error, assuming valid values used.

edit: perhaps when binding object adsgetobject specify class of object. example, bind "winnt://mydomain/jsmith,user". also, "winnt" case sensitive.


richard mueller - mvp enterprise mobility (identity , access)




Windows Server  >  Directory Services



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS