Can I use 2 Membership Providers in ASP.NET?

I have a website and need to use a user database from a user database (SQL Server, Oracle, etc.) and from an NT user database (computer or domain) to secure / authenticate the site.

  • The user registers on the site and enters his username and password.
  • If the user exists, the site looks for the user database (SQL Server, Oracle, etc.).
  • If not, the site looks for the domain (Active Directory) if the user exists.

Can SqlMembershipProvider AND ActiveDirectoryMembershipProvider be used at the same time ?

0


a source to share


1 answer


Yes it is possible.



Just add MembershipProviders to your Web.config and specify defaultMembershipProvider afaicr

+2


a source







All Articles