[英]windows authentication with a custom login page
So i only need to do windows authentication and not forms authentication. 因此,我只需要执行Windows身份验证,而无需进行表单身份验证。
Instead of giving the user a popup box for login.. i want to have a login page with Username, domain and password..also an option of remember password. 而不是给用户一个用于登录的弹出框。.我想要一个包含用户名,域和密码的登录页面。.还可以选择记住密码。 If the user does not exist it should just show that wrong username and password.
如果用户不存在,则应显示错误的用户名和密码。
I have 2 types of users: administrators & users. 我有2种类型的用户:管理员和用户。
If its an administrator it should go to admin.aspx and if its User, it should go to users.aspx. 如果是管理员,则应转到admin.aspx,如果是User(用户),则应转到users.aspx。
any help is appreciated. 任何帮助表示赞赏。 I have tried to do this but i actually mixed forms and windows authentication, and i think i have security issues.
我曾尝试这样做,但实际上我混合使用了表单和Windows身份验证,并且我认为我遇到了安全问题。
Use the ActiveDirectoryMembershipProvider 使用ActiveDirectoryMembershipProvider
http://msdn.microsoft.com/en-us/library/ff650307.aspx http://msdn.microsoft.com/en-us/library/ff650307.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.