Saturday, March 24, 2012

Windows Authentication Question.

Hi, I am new to this forum and this is my first post. I took an ASP.net course and now I am a .NET programmer rather than a J2EE programmer.
I am currently working on an ASP.Net project that needs integrated
windows authentication. I have several books on how to do this but the book
only specifies how to configure the xml file, but I haven't found any
references or guide to how to configure the IIS web server for integrated Windows Authentication. Does anybody know any website that will show you how that part works? One more question, will NT server and IIS 4.0 run .Net applications? Because I am using a NT server for testing.first of all, WELCOME!! it's great to see another convert.

iis configuration
i'm assuming you're working on an app for the intranet. for windows authentication to work, you need to disable anonymous access. to do this, go to Internet Information Services Console and right-click on ur website and go to properties. select the Directory Security tab and click the Edit button under "Anonymous Access" section. make sure the "Anonymous Access" checkbox is UNCHECKED and at the same time make sure the "Integrated Windows Authentication" checkbox at the bottom is CHECKED. should be good to go after that.

second question
asp.net requires IIS 5.0 on Windows 2000 or greater. it will NOT run on IIS 4.0
thanks for your answer. I am working on an intranet application. Once I have Intergrated Windows Authentication running, how can I retrieve the userid of the person using the system? The reason for that is I would like to go to the Active directory to pull information out (e.g. User first and last name, address, etc) to pre-fill an application for ther user.
Request.ServerVariables("AUTH_USER") will give you the DOMAIN\username...
if you need help with Active directory access, do a search in the forums, there are some great examples.
Thanks for your help! I'll do a search on the forum for that.

0 comments:

Post a Comment