Re: WindowsTokenRoleProvider & Domain Groups
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 Feb 2007 13:21:51 -0600
I don't understand why you need to use forms auth if you are going to use AD
as the auth store. What's the point? I realize that MS provided the AD
membership provider to address this need, but I still struggle to understand
when it is really needed.
If you do plan to use the AD membership provider, you will need an AD
LDAP-based role provider as well such as the one I mentioned that Ryan is
working on currently. To look up your additional attributes in AD, that
will require the DirectorySearcher as you've already been doing.
Definitely check out the book, especially the end of ch 10 to see how the
tokenGroups thing works to get a user's group membership via LDAP. That is
the query that the whole thing pivots around. The rest is just framework
code to make that data work within the provider model and provide
appropriate credentials and connection info to AD.
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
--
"Craig Wagner" <MSDNNospam207@xxxxxxxxxxxxx> wrote in message
news:383BFA30-92CB-4267-A5DD-2187EE0A57BD@xxxxxxxxxxxxxxxx
"If you are using Windows auth in IIS/ASP.NET..."
Ah, there's the rub. The only reason I'm using Windows Authentication
right
now is because that's the only way I could start experimenting with the
GetRoles method.
As I said in another post, ultimately the app needs to run with anonymous
access enabled and forms authentication. The current configuration (using
Windows Authentication) was only to get me started understanding a bit
about
this stuff. Of course the first thing I ran into was not seeing the domain
local groups, which confused me.
Given that I ultimately need to use Forms Authentication and have the web
app run with anonymous access enabled, using the
ActiveDirectoryMembershipProvider for authentication and DirectorySearcher
to
look up the user's name and groups seems the way to go.
I will take a look at your book for more hints.
.
- References:
- Re: WindowsTokenRoleProvider & Domain Groups
- From: Joe Kaplan
- Re: WindowsTokenRoleProvider & Domain Groups
- From: Joe Kaplan
- Re: WindowsTokenRoleProvider & Domain Groups
- From: Joe Kaplan
- Re: WindowsTokenRoleProvider & Domain Groups
- From: Joe Kaplan
- Re: WindowsTokenRoleProvider & Domain Groups
- Prev by Date: Re: 2 membership databases
- Next by Date: Re: How to start/stop windows service on a remote machine?
- Previous by thread: Re: WindowsTokenRoleProvider & Domain Groups
- Next by thread: Re: WindowsTokenRoleProvider & Domain Groups
- Index(es):
Relevant Pages
|
|