I am trying to create a hybrid membership which authenticates with active directory (ldap) but authorizes using the membership provider and roles.
I do not want to query active directory for each page load, but I want to initially authenticate the user via active directory, and then allow the membership provider to authorize the users access to each page via the web.config authorization properties.
I am new to the .net membership model and how to implement this type of hybrid solution. I have found many examples for implementing Active Directory with Web Forms, but not a solution to my needs.
Any pseudocode or general description for this solution is also very welcome.
Thank you!
UPDATED Question: Currently looking into implement the active directory (AD) authentication on top of the Membership/Roles schema. Basically authenticating initially with AD, updating the Membership database tables with the user/roles as needed, setting the user as authenticated with the Membership and allowing the membership to handle all authorization requirements. Although this is not as clean as creating Custom Membership/Role providers, I am wondering if this solution can be considered valid?
You can do this by implementing your own layer above the Membership provider by doing the following
its a lot of work but you can do it, after all you just need to read more about Asp.net membership