djhawthorn
Technical User
Does anyone know how to get serverless binding to work for remote domain authentication/ADO queries?
I have tried the example[sup]1[/sup] per the MS Scripting Guy page, however I always get ‘Provider: Permission denied’ whenever I try and execute the query. I have turned on auditing on the remote DC (in my test lab) and it shows a successful authentication request, so it’s passing the credentials correctly. It doesn’t seem to matter what access the remote user has either.
If I change the query in the example to bind to a specific server though, the example works.
i.e. Where they have
[tt]objCommand.CommandText = "SELECT Name FROM 'LDAP://DC=fabrikam,DC=com' WHERE objectCategory='user'"[/tt]
I replace that with
[tt]objCommand.CommandText = "SELECT Name FROM 'LDAP://SERVER.fabrikam.com/DC=fabrikam,DC=com' WHERE objectCategory='user'"[/tt]
(and changing the searchscope to 2 – subtree search) and I successfully get a list of users in the domain.
Basically I want to be able to query a remote domain without having to specify the DC to query against if possible. Any ideas?
Thanks.
[sup]1[/sup]
The dumber they think you are, the more surprised they'll be when you kill them!
I have tried the example[sup]1[/sup] per the MS Scripting Guy page, however I always get ‘Provider: Permission denied’ whenever I try and execute the query. I have turned on auditing on the remote DC (in my test lab) and it shows a successful authentication request, so it’s passing the credentials correctly. It doesn’t seem to matter what access the remote user has either.
If I change the query in the example to bind to a specific server though, the example works.
i.e. Where they have
[tt]objCommand.CommandText = "SELECT Name FROM 'LDAP://DC=fabrikam,DC=com' WHERE objectCategory='user'"[/tt]
I replace that with
[tt]objCommand.CommandText = "SELECT Name FROM 'LDAP://SERVER.fabrikam.com/DC=fabrikam,DC=com' WHERE objectCategory='user'"[/tt]
(and changing the searchscope to 2 – subtree search) and I successfully get a list of users in the domain.
Basically I want to be able to query a remote domain without having to specify the DC to query against if possible. Any ideas?
Thanks.
[sup]1[/sup]
The dumber they think you are, the more surprised they'll be when you kill them!