0

Confused about Windows authentication.

I tried in the below way.

1) I have created 2 pages Home.aspx and Admin.aspx

2) Created Virtual directory and placed my application in the IIS.

3) Antonymous access is false and Integrated windows security is true.

4) In the web.config file haven given this code.

    <authentication mode="Windows"/>


    <authorization>
----------------------      

    </authorization>

5) Created new user under Computer management.

trying with various roles section in tag.

But what ever I am entering as a roles it is not asking the credentials.

seems some where near to roles section in tag is making problem.

please help me out what was the tag need to add for windows authentication.

Thanks in advance for your help.

Chaitanya Phani
  • 127
  • 1
  • 2
  • 12
  • do you use IE? If yes, do you have 'enable integrated windows authentication' checked in advanced settings? – Robert Dec 16 '14 at 12:17
  • @Robert: yes, it was checked only – Chaitanya Phani Dec 16 '14 at 12:20
  • "trying with various roles section in tag" - be more specific about what you're trying, what you're seeing, and what you're expecting to see. If you add "allow" elements for one or more roles, you may also need to append an element `` – Joe Dec 16 '14 at 12:23
  • @Joe: my expected out put will be it should ask the credentials of my windows login when i run the webpage. i am follwoing below article.http://www.codeproject.com/Articles/98950/ASP-NET-authentication-and-authorization#Windows Authentication but iam not understanding what is this section in authorizatio tag – Chaitanya Phani Dec 16 '14 at 12:27
  • @ChaitanyaPhani - this will depend on the browser. IE and some other recent browsers will use your current credentials without prompting if the browser is in the same domain or on the same machine as the web site. – Joe Dec 16 '14 at 12:32
  • @Joe: might be that is the possibility . what is the section ? could you tell me what it is for – Chaitanya Phani Dec 16 '14 at 12:49
  • @Joe: thanks for your suggestion, and i am able to test this for users. just any body could figure out what is roles for? – Chaitanya Phani Dec 16 '14 at 13:16
  • @ChaitanyaPhani - roles would correspond to Windows Groups in this case. – Joe Dec 16 '14 at 13:37
  • @Joe: Thank you very much, hope i am good state now. – Chaitanya Phani Dec 17 '14 at 06:26

1 Answers1

-1

You must also make sure your URL does not contain dots!

See my answer on: WIndows Authentication not working

Community
  • 1
  • 1
Ron Deijkers
  • 2,791
  • 2
  • 22
  • 28