Custom Membership Provider with multi databases



Hi, all

I have tested the Sample Access Providers from Provider Toolkit and get
some feeling how to write a Custom Membership Provider. But now in my own
asp.net app I cannot make my Custom Membership Provider working with multi
databases. My aps.net web site using querystring such as
http://localhost/myapp?client=AClient or
http://localhost/myapp?client=BClient
to specify which database to connet. And each database have its own User and
Role table. We don't want a cental role and membership database because each
database map to an independant client. And in my understanding, each
membership provider and role provider can only point to one database through
the connectionStringName value in Web.Config.

Is there any way I can make use of Asp.net 2 membershipProvider and
roleProvider with multi databases?

Cheers,

Tao


.



Relevant Pages

  • Re: Custom Membership Provider with multi databases
    ... So in my understanding, what you mean is impossible to use one ASP.Net app ... some feeling how to write a Custom Membership Provider. ... to specify which database to connet. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Manually adding a ASP.Membership account for an install script
    ... and all the xml to a CONSOLE app or Windows Form app. ... And then you can code against the membership provider, ... script file (it just preloads the database with data). ... we have to have the 'admin' user ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: GenericPrincipal
    ... I think if you want to use your existing user database, ... The default one doesn't necessarily require SQL express, ... SQL membership provider is freely available for you to look at and modify. ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Custom Membership Provider with multi databases
    ... You can create multiple ASP.NET databi (plural for database:->) and point ... You then add tthe client specific stuff to the shell. ... some feeling how to write a Custom Membership Provider. ... roleProvider with multi databases? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: MembershipProvider limit no effect.
    ... Unless you are creating a Custom Membership Provider from scratch ... *all* the features in the the Membership Provider class ... asp.net faq: http://asp.net.do/faq/ ...
    (microsoft.public.dotnet.framework.aspnet)