Hi,
Im developing an Intranet Application in ASP.NET that uses Windows Authentication. I have created an AD class that gets information from the Active Directory Domain Controller. This is what I use to get things like User Groups that the currently logged user is in. The problem is in the ASP.NET Roles that the user is in. Seems funny, but the list of AD Groups that the user is in is totally different from the list of Roles that the user has.
Here is what I get:
List of AD Groups for a certian user
1)Developers
2)Account Operators
3)Domain Admins
4)IS_IUSRS
5)Administrators
List of the same user's Roles
1) PUDDOM\Domain Users
2) Everyone
3) BUILTIN\Users
4) BUILTIN\Administrators
5) NT AUTHORITY\INTERACTIVE
6) NT AUTHORITY\Authenticated Users
7) NT AUTHORITY\This Organization
8) LOCAL
9) PUDDOM\Domain Admins
10) PUDDOM\Denied RODC Password Replication Group
11) PUDDOM\DnsAdmins
OTHER INFORMATION
1) I have my website use Integrated Windows Authentication from IIS7.
2) A portion of my web.config looks like this
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
<roleManager defaultProvider="AspNetWindowsTokenRoleProvider" enabled="true">
<providers>
<remove name="AspNetSqlRoleProvider" />
</providers>
</roleManager>
If anyone has an idea on how on earth is this happening, and or how do I reconcile the list, please post a reply.
I need to make my Roles list reflect the same data as my AD Groups list because I will use Role trimming in my site map and other stuff.
Thanks in advance,