I need to use Form-Based authentication on an ASP.NET MVC web site with LDAP (Active Directory) backend like TeamCity for instance.
So i need to query LDAP first if the requested user is valid, then auto-register user in database according to LDAP user authentication infos in order to use mixed authentication :
Users :
Admin (local web site user, stored in database only)
Somebody (LDAP user, auto-registered in database on first login)
Thanks.