MVC 4 SImpleMembership with LDAP

被刻印的时光 ゝ 提交于 2019-12-09 11:59:37

问题


I'm looking to try out using simpleMembership but connect it to our LDAP. I haven't seen anything online about doing this, only with SQL. Does anyone know if it's possible and could lead me in the right direction?


回答1:


I think you'd need to create a class which inherits from ExtendedMembershipProvider and write the LDAP implementation. There's no built-in LDAP support.

See this post for more information on how SimpleMembership works in ASP.NET MVC 4.




回答2:


I'm not certain, but ActiveDirectoryMembershipProvider may be able to be configured to connect to a different LDAP provider. You mentioned in an earlier response that you're using Active Directory so it may even be a non-issue.

http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.aspx



来源:https://stackoverflow.com/questions/12200616/mvc-4-simplemembership-with-ldap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!