A Windows Authentication lesson in. Net [original]

Source: Internet
Author: User
Published on blog.csdn.net/zxub

These days, I have engaged in. NET and implemented a background management system. Finally, I need to use user identity verification. I have compared several verification methods, and I feel that Windows verification is the easiest to use.
First, this project is implemented in vs. In this project, there is a directory named admin, and a web is put in it. the config file is always wrong. Later, in Vs, it is set to an application (Note: Not in IIS) and re-compiled. The problem is finally solved.
Next, set the user authentication section in the web. in the config file, add <identity impersonate = "true"/> under <Authentication mode = "Windows"/>, <authorization> Add <allow users = "Ha \ Administrator"/> (HA indicates the machine name, and administrator indicates the Guest user -_-#) <deny users = "*"/>, go to IIS, and check the properties of the admin file-Directory Security-identity authentication and access control-to check the integrated windows identity authentication, if none of the other items are selected, start the test.
After ie enters the file path, a dialog box asking for the user name and password appears. Enter the user name and password. The problem is that I can't get in. I found n more articles and did not solve it.
In the subsequent experiment, we found that an account in the Administrators group can be used (of course, Web. config). Create an account. You can also check the user group and change it to the guests group. You can change it to another one !!! Strange! Why can't I use a guest account named "Administrator ?! Oh, my God, this problem has been plaguing me for almost a day. What is it ?!!!! It's depressing. Although the problem is solved, it's left. Why? It's depressing !!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.