Impersonated thread fails to execute ADsGetObject()

L

Louis

We have a .Net windows service which invokes impersonated threads to connect
to a remote machine. After connecting to remote machine the impersonated
thread tries to invoke a remote process(a .msi) which internally connects to
active directory using ADSGetObject().

But this method call fails in remote machines when we run the .msi remotly
through Impersonated thread and passes(able to connect AD) when we run the
..msi locally.

The return error code of ADSGetObject() call is hr = 0x80072020; last error
= 317.
"Error - unable to bind object for this path; hr = 0x80072020; last error =
317; reason: Extended ADSI Error: LDAP Provider : 00000000: LdapErr:
DSID-0C090627, comment: In order to perform this operation a successful bind
must be completed on the connection."
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top