6

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?

Gary James
  • 324
  • 3
  • 11

2 Answers2

4

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.

Jon Galloway
  • 52,327
  • 25
  • 125
  • 193
  • 1
    Thanks for the info. Was hoping they'd have something integrated since they had already added external logins such as Google, Yahoo, Facebook, etc. – Gary James Sep 04 '12 at 13:06
  • 7
    What is the rational behind not implementing LDAP support? In our environment a majority of our apps run off of Active Directory for Single Sign On purposes. It was pretty disheartening to create a new MVC 4 project in VS 2012 and have been forced into a situation where we have no "easy way" to implement Active Directory Forms Auth. We are having to tear apart the Account section to get this work. I can't believe that we're the only shop in this situation. – Scott Lance Sep 17 '12 at 20:25
  • 2
    @ScottLance Trust me, you're not the only shop. – RichC Jan 28 '13 at 19:24
0

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

Mythgarr
  • 133
  • 8