Re: Forms Authentication - Active Directory



They are all not very helpful in your situation.

The WindowsTokenRoleProvider only works with windows auth - not forms.

Ryan an me have written an ActiveDirectoryRoleProvider - which seems to work for most people...

i can send you the code if you are interested...


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

On Jun 11, 10:48 am, oriol.arde...@xxxxxxxxx wrote:

Hi,

I have an asp.net 2.0 application with forms authentication. I am
authenticating the users to an Active Directory Server with
ActiveDirectoryMembershipProvider which works as expected and users
get authenticated.

What I am trying to do is to get also the role information from the
Active Directory Server with the groups where the users belong to.

Is there any way to achieve it ? Can it be done by enabling some
provider in the role manager section of the web.config file ?

any help will be appreciated, thx in advance,
ori
You would need a role provider.

WindowsTokenRoleProvider for using Active Directory groups as roles
AuthorizationStoreProvider - for Windows 2003 and ADAM SqlRoleProvider
for storing roles in SQL Server

More about WindowsTokenRoleProvider
http://msdn2.microsoft.com/en-us/library/system.web.security.windowsto
kenroleprovider.aspx


.



Relevant Pages

  • Re: Forms Authentication - Active Directory
    ... I have an asp.net 2.0 application with forms authentication. ... Active Directory Server with the groups where the users belong to. ... More about WindowsTokenRoleProvider ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Forms Authentication - Active Directory
    ... Joe Kaplan-MS MVP Directory Services Programming ... The WindowsTokenRoleProvider only works with windows auth - not forms. ... Active Directory Server with the groups where the users belong to. ... You would need a role provider. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Getting GROUPS from Active Directory by inputing an AD username
    ... I used the WindowsTokenRoleProvider and i was able to input my username and ... i retrieved all the GROUPS i belong to on my PC. ... I'm thinking of doing the same but against Active Directory. ...
    (microsoft.public.dotnet.framework.aspnet.security)