简体   繁体   English

具有自定义登录页面的Windows身份验证

[英]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.

相关问题 在ASP.NET MVC中使用自定义登录页面进行Intranet Windows身份验证 - intranet windows authentication with with custom login page in ASP.NET MVC 如何在 windows xp 中创建自定义登录页面 - How to create custom login page in windows xp Windows身份验证自动登录 - windows authentication auto login 没有登录页面的ASP.NET自定义身份验证 - ASP.NET Custom authentication without login page asp .net core-3.1登录使用windows身份验证登录页面而不是浏览器弹出窗口 - asp .net core-3.1 login using windows authentication with login page instead of browser popup 使用 Windows Identity Foundation 重定向到自定义登录页面 - Redirecting to a custom login page using Windows Identity Foundation Windows 8移动自定义身份验证 - windows 8 mobile custom authentication 登录信息sql windows身份验证 - login info sql windows authentication 获取没有Windows身份验证的Windows登录名 - Get windows login name without Windows Authentication 自定义角色提供程序错误:登录名来自不受信任的域,不能与Windows身份验证一起使用 - Error with Custom Role Provider: The login is from an untrusted domain and cannot be used with Windows authentication
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM