jerbersoft
jerbersoft

Reputation: 4450

Is it possible to use 2 membership providers in ASP.NET?

I have a website and needs to use the users base from a users database (SQL Server, Oracle, etc) and from a NT user database (computer or domain) for security/authentication of the site.

  1. A user logs into the site and enters his/her username and password.
  2. The site looks up to the users database (SQL Server, Oracle, etc.) if the user exists.
  3. If not, the site looks up to the domain (Active Directory) if the user exists.

Is it possible to use SqlMembershipProvider AND ActiveDirectoryMembershipProvider at the same time?

Upvotes: 0

Views: 333

Answers (1)

Eoin Campbell
Eoin Campbell

Reputation: 44308

Yes it is possible.

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

Upvotes: 2

Related Questions