Re: Active Directory and Roles
- From: "Robert Ginsburg" <robert.ginsburg@xxxxxxxx>
- Date: Tue, 23 May 2006 08:29:39 -0400
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
.
- Follow-Ups:
- Re: Active Directory and Roles
- From: Kenneth Keeley
- Re: Active Directory and Roles
- References:
- Active Directory and Roles
- From: Kenneth Keeley
- Active Directory and Roles
- Prev by Date: Re: ASPNET Select permission denied...
- Next by Date: Membership Management - problem reading users from SQL 2005
- Previous by thread: Re: Active Directory and Roles
- Next by thread: Re: Active Directory and Roles
- Index(es):
Relevant Pages
|