Extending ActiveDirectoryMembershipProvider

V

Vaishali Patel

Hi,
I have a custom schema in my Active Directory which has Groups Like
RoleGroup, CompanyGroup. There is a custom WebUsers schema as well. Each
WebUser is associated with Mutliple RoleGroups and CompanyGroups.
1. How can I extend / customize ActiveDirectoryMembershipProvider to get the
list of groups (both RoleGroup and CompanyGroup) and add new values to this
group ?
2. How can I extend / customize ActiveDirectoryMembershipProvider to create
Web Users that are associated to these custom groups?

Please advice.
Regards,
Vaishali Patel.
 
J

Joe Kaplan

The AD membership provider doesn't include a role provider at all, so
essentially you just need to write your own role provider. You would
presumably do LDAP queries to look up your custom schema.

My coauthor, Ryan Dunn, created an AD role provider sample on CodePlex that
just turns normal AD security group membership into roles. You might be
able to use that as a starting point.

Joe K.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top