简体   繁体   中英

iis7 integrated windowsauthentication prompts for username and password

I am using asp.net application in vs 2008 I need to use windows authentication in iis7. i have set up windows authentication in web.config and enabled windows authentication in iis. I disabled anonymous authentication. when i browse localhost,it is asking username and password.

For localhost it should not ask for username and password.

Any idea

Thanks

If you are using IE, then enable windows integrated authentication from tools --> internet options -- advanced tab. Also when you access the site, see which zone it is going to. If it is going to internet, single sign on may not work. So you have to add the site to your intranet zone by going to tools --> internet options --> security tab --> local intranet --> sites --> advanced --> type the URL such as http://yoursitename.test.com and click add Also make sure tools --> internet options --> security tab --> local intranet --> custom level --> authentication --> automatic logon only in intranet zone option is selected

Also Kerberos will never work on local machine. You have to try from remote machine in the network.

Good luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM