Re: AD Group Memberships (MyADMembershipProvider) Question



We have some nice samples of this stuff in our book. There is a low level
sample on group membership expansion in ch 10, which you can download for
free from the link in my sig, along with the source code.

My co-author, Ryan Dunn, also put together an experimental AD group role
provider that integrates with the ASP.NET 2.0 role provider framework. You
might want to take a look at that.

Unfortunately, his blog seems to be a little hosed right now, but I'll email
him and see if he can get it working again. Here's the link:

http://www.dunnry.com/blog/

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Andy Melick" <melick.andy@xxxxxxxxxxxxxxx> wrote in message
news:uLZaRWV8GHA.4632@xxxxxxxxxxxxxxxxxxxxxxx
All,

I am using MyADMembershipProvider as my membership provider to
authenticate to my application via Active Directory. I have found how I
can allow / deny authorization for users via <authorization> section in
the web.config.

What is a method to search users membership to return all the groups they
are a member of. This is for use in a portal and in classic asp I used to
do the following:

'Check to see if user is member of nco-account-admin for network tools
access
Set GroupObj = GetObject("WinNT://" & DomainString & "/" & GroupString)
For each UserObj in GroupObj.Members
If UserObj.Name = Request.Form("username") then
session("networktools") = "true"
else
end if

Next

How do I go about doing the same thing in ASP.NET 2.0?

Thanks in advance for any help!



.



Relevant Pages

  • Re: Defining Groups with AD users
    ... For ASP.NET authentication and role based authorization, ... you can configure the membership to use AD ... membership provider and Rolemanager to use SQL server provider. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Defining Groups with AD users
    ... For ASP.NET authentication and role based authorization, ... you can configure the membership to use AD ... membership provider and Rolemanager to use SQL server provider. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: MS ADAM: How strategic is a) MS ADAM and b) Authorizaion Manager?
    ... I'm not really sure on all of the details on the AD membership provider as I ... > I hadn't found ActiveDirectoryMembershipProvider in any of the TechEd ... I think the issue here is that AzMan is a much ...
    (microsoft.public.windows.server.active_directory)
  • Re: Replacing VS .NETs SQL Server Express Edition Integration
    ... You could write a custom membership provider. ... You could add the tables you need to your existing database table. ... As for configuring ASP.NET 2.0 membership to connect SQL Server 2000, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help with ASP.NET Memberships
    ... Jonathan Wood ... It took me a good bit of research and study to get the ideas behing the ASP.Net Provider Model, and some of the implementations of it which come packaged in the framework, but once I "got it" it became fairly simple to use, and I even ended up writing a Provider of my own which I used for email with Memberships and Roles in an application. ... The difference between Membership and Roles is only one of specificity. ... The Provider pattern dictates that a static class of static methods is the "intermediary" between the application and the actual Provider class implementation. ...
    (microsoft.public.dotnet.framework.aspnet)