HighTechTalks DotNet Forums  

AD-authentication with custom roles in SQL-db ?

Dotnet Security microsoft.public.dotnet.security


Discuss AD-authentication with custom roles in SQL-db ? in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Reinhard
 
Posts: n/a

Default AD-authentication with custom roles in SQL-db ? - 03-02-2007 , 02:29 AM






I am writing an asp 2.0 website where existing AD users can log in.
I am using ActiveDirectoryMembershipProvider for this task and it
works.

Now I need to define roles for these users (admin, author, user...)
These roles are not defined as groups in AD (in fact there could be
other web-applications with a different set of roles and users), so I
am looking into creating a separate database where these roles are
stored and mapped to the AD-users.



Quote:
From my understanding, the Membership and Roles are managed by the

same database Visual Studio 2005 creates. But in my case I have
Memberships defined in AD and Roles should be in SQL-DB.

Is this possible? Am I missing something basic? How could I map roles
to users?
I am using IIS, so I have no access to the ASP.Net Configuration Tool
to set up roles.


Thanks for any hints!


Reinhard



Reply With Quote
  #2  
Old   
Joe Kaplan
 
Posts: n/a

Default Re: AD-authentication with custom roles in SQL-db ? - 03-02-2007 , 10:08 AM






You can mix and match membership providers and role providers, as long as
you key (the username) you are using works in each system you store the user
data in. I don't see a problem with doing this except that keeping SQL in
sync with AD will likely suck, especially if there are many users in AD and
there is a lot of ID provisioning activity in the directory.

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
--
"Reinhard" <c.robin (AT) gmx (DOT) at> wrote

Quote:
I am writing an asp 2.0 website where existing AD users can log in.
I am using ActiveDirectoryMembershipProvider for this task and it
works.

Now I need to define roles for these users (admin, author, user...)
These roles are not defined as groups in AD (in fact there could be
other web-applications with a different set of roles and users), so I
am looking into creating a separate database where these roles are
stored and mapped to the AD-users.



From my understanding, the Membership and Roles are managed by the


same database Visual Studio 2005 creates. But in my case I have
Memberships defined in AD and Roles should be in SQL-DB.

Is this possible? Am I missing something basic? How could I map roles
to users?
I am using IIS, so I have no access to the ASP.Net Configuration Tool
to set up roles.


Thanks for any hints!


Reinhard




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.