Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Security (http://www.velocityreviews.com/forums/f62-asp-net-security.html)
-   -   Extending ActiveDirectoryMembershipProvider (http://www.velocityreviews.com/forums/t769802-extending-activedirectorymembershipprovider.html)

Vaishali Patel 03-19-2008 03:45 PM

Extending ActiveDirectoryMembershipProvider
 
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.

Joe Kaplan 03-19-2008 06:02 PM

Re: Extending ActiveDirectoryMembershipProvider
 
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.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Vaishali Patel" <VaishaliPatel@discussions.microsoft.com> wrote in message
news:F69C587D-EB8D-4034-8374-D014C08FB25A@microsoft.com...
> 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.





All times are GMT. The time now is 03:56 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.