What should be my approach for using LDAP with Identity 2.0 ?

Apr 27, 2014 at 8:00 PM
I have a requirement to be able to identify users using their organizational intranet Active Directory account, was looking all around the web and found providers for Facebook, MS, Twitter, but no MS Active Directory (not Azure as it is intranet).

How can I allow Active Directory to identify my users and be able to keep data about then in the IdentityContext ?

Anyone had this requirement as well?
Developer
Apr 28, 2014 at 7:19 PM
@ofiris: I am not sure if you are using Active Directory in Azure, but let me know if this post http://www.cloudidentity.com/blog/2014/02/20/ws-federation-in-microsoft-owin-componentsa-quick-start/ is helpful
Apr 29, 2014 at 9:34 PM
@sushaj: Thanks for the link, in the original post I mention it is not Azure, it is an intranet website, thanks.
May 6, 2014 at 3:14 AM
@ofiris: Can you clarify - Are you looking to
1) add on premise AD as another "external" login or
2) are you wanting to use it for local accounts?

In case of 1) I would start looking into how FB, Google, and other providers "hook in" via OWIN.
As for #2) I am not sure how you would go about it. Currently ASP.NET Identity is built around DbContext wich depends on DB backend...To use AD you'd have to almost start from scratch....In which case this may help: http://weblogs.asp.net/imranbaloch/archive/2014/04/08/a-sample-of-onion-architecture-with-asp-net-identity.aspx

HTH
zam