A
Andy Melick
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!
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!