Re: Active Directory and Roles



If you are using windows impersonation then WindowsPrincipal.IsInRole(...)
will check group membership. If you are using LDAP to check the
authentication but are not impersonating the user then you will have to
construct the group membership manually.

"Kenneth Keeley" <kenkeeley@xxxxxxxxxxx> wrote in message
news:OHV3q4gfGHA.764@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I have seen and used an example of a login page that uses ASP.Net 1.1 and
Active Directory. I have recently updated the code to work with ASP.Net
2.0
and all is working. I have now been trying to ad roles to my Web site. I
would like to see a sample where a user could be authenicated against
Active
Directory and the Users Roles would be based on the Active Directory group
membership.Can this be done? If so could somebody show me some sample
code.

Thanks
Kenneth




.



Relevant Pages

  • Re: Webpage which can Authenticate via Active Directory
    ... username to be able to insert data into a mysql database and assign ... but wanted to use forms authentication to determine Active Directory ... information such as group membership. ... We have various web scripts and in each one we have to store all the ...
    (microsoft.public.scripting.vbscript)
  • Re: Windows Integrated Security - Restricting Users Without Groups
    ... application when those permissions are not taken into account. ... it seems that the windows group membership does not correlate to ... >>> users are in fact, Active Directory user accounts, or whether, perhaps, ... >>> database, which would be entirely separate from Active Directory, other ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Getting Group Membership
    ... > Lagash Systems S.A. ... > Before, I had queried active directory, got the list of groups for the user ... > 'is a domain admin ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Security groups in Active directory not applying after de promoting a domain controller
    ... given it time to update the settings. ... > the group membership?? ... > Free Windows event logs reports ... >> in active directory and add members to that group. ...
    (microsoft.public.win2000.active_directory)
  • User privilege caching in Active Directory?
    ... I have configured the privileges associatetd with these custom groups. ... When I change a user's group membership, ... I'm also talking about privileges on the Active Directory ... If there is such a caching (and I cannot force the refresh) I would ...
    (microsoft.public.windows.server.active_directory)