A lesson about Windows authentication [Original]

xiaoxiao2021-03-06  67

These days, do it .NET, made a background management system, and finally use the user authentication, compare several authentication methods, and feel that Windows is the easiest, and it is used.

First, this project is in VS, there is a directory in the project to be admin, put a web.config file inside, always wrong, later, set it into an app in vs (note: not IIS), recompile, and the problem is finally resolved.

Then set the user verification section, in the web.config file, <μntity model = "windows" /> plus , Behind (HA is the machine name, administrator is guest user -_- #) , to IIS, put the properties of the admin file - directory security - authentication and access control - In the hook of integrated Windows authentication, the other is not selected, then start testing.

After IE Enter the file path, there is a dialog box that requires the username and password, enter the username and password. The problem is coming, always can't enter, find N more articles, not solved.

During the later test, I found that one account with the Administrators group can be entered (of course, it is setting up a web.config), newly established an account, or, check it out, User group, change it into a guest group, or Yes, change one, still! ! ! Blame, how can the name of the name of the administrator? ! God, this question is torture, I am almost a day, what is going on? ! ! ! ! It's so depressed, the problem is solved, but this problem is left, how can I, depressed! ! !

转载请注明原文地址:https://www.9cbs.com/read-82172.html

New Post(0)