
December 6th, 2004, 02:51 PM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Using Integrated Windows Authentication to access Active Directory
Hi,
My ASP.NET application should use the logged-in windows user credentials to access Active Directory. Therefore, no login is required.
I have disabled "Anonymous Access" & enabled "Integrated Windows Authentication" on the web server for my ASP.NET application. My Web.config file has the following entries:
<authentication mode="Windows" />
<identity impersonate="true"/>
Now when I run the application from within Visual Studio.NET, the application successfully runs after determining the windows user in the code using "User.Identity.Name" & I am able to access the active DirectoryEntry for that User.
However, when I navigate to this new aspx page from an existing ASP page, I am prompted to login to the domain again.
Any help will be greatly appreciated!!! Is urgent for me to solve this problem.
Thanks
|