FBA with AD and SQL RRS feed

  • Question

  • hi,

    is it possible to mix those registrations?

    i read something like: extranet intranet registration


    is this the online or best way to configure that?


    i have to add the following:


    i need to implement this without a second (extranet) site


    that means: there should be only one url for both registration types (windows user or sql)

    • Edited by Mike Walsh FIN Friday, August 5, 2011 9:16 AM I have to add the following .. taken from post from OP directly after this one.
    Friday, August 5, 2011 6:35 AM

All replies

  • Hi Chris,

    You cannot mix both authentication in a single zone. In fact, you can configure FBA with AD and SQL for a single web application. Try extending your web application into two different zones. One for FBA using AD(Intranet) and second for FBA using SQL membership provider(extranet).

    Mohammed Hussain
    Friday, August 5, 2011 6:58 AM
  • hey,


    ty for your fast answer.


    but it should be possible to mix both authentification type in a single zone by writting a custom provider that extends the membership provider and so on


    there i will first look in the active directory; if there is no user registered i will look in sql database


    so with this way it should be possible??

    Friday, August 5, 2011 7:14 AM
  • I don't think this is achievable in this way. If you have already done so or you intend to do in future. Please do send us the steps/procedure, that would help users community as well.
    Mohammed Hussain
    Friday, August 5, 2011 11:04 AM
  • its possible :) steps are the following:

    1) class which inherits SqlMembershipProvider

    2) there you need to override the validateuser method (and other methods you need for your solution)

    3) in the validateuser method you first validate the user against the sql db

    4) if the user does not match you validate the user against AD (in a second class which inherits MembershipProvider) it depends on your solution if you override methods like getusernamebyemail, changepassword and so on

    Tuesday, August 9, 2011 7:51 AM