On Oct 19, 4:50*pm, Iain <i...@test.co.uk> wrote:
> > There was no mention of remote active directory in your original post....
>
> >http://www.codeproject.com/KB/system...ngInAD.aspxand search for
> > "Target Specific Domain Controllers or Credentials"
>
> > Again, active directory questions will likely get a better and faster
> > response if you post them in the active directory newsgroup...
>
> Sorry if my post was not very clear, the machines that I want to connect
> via AD are all present within the same domain. The local machine hosting
> IIS (essentially my dev box) can connect/query AD, but connecting via
> another machine (on the same domain) returns :
>
> "The specified domain either does not exist or could not be contacted."
>
> when trying to access my dev box.
This probably means that the asp.net account on another machine may
not query AD. Try to look in the event log for more details.
You need to configure your application to be running using Windows
Authentication (go to IIS). Authentication mode must be set to
"Windows" in the web.config file, identity impersonate to true.
To debug your application you can output current account name to see
what the difference is between your dev box and another machine:
Response.Write (User.Identity.Name);