S
Stefan
Hello!
I´m using windowsauthentication in my asp.net 2.0 website. I have some
problems using the rolemanager. I´m using the AuthorizationStoreRoleProvider
to perform "role checks" against active directory (win 2000).
The problem is that the User.Identity.Name is like <domain>\<user> and I
think that is what is used when checking roles, but it only works for me if i
only supply the <user> when checking a role.
Some output :
?user.Identity.Name
"myDomain\Steve"
?user.IsInRole("myRole")
False
?roles.IsUserInRole("Steve", "myRole")
True
?roles.IsUserInRole("myDomain\Steve", "myRole")
False
The problem here is that I´m using securitytrimming so that the user only
see´s links to pages which they have access to and this does not work becuase
of this. What can I do about this? Can i change something in my configuration
or can I change some property in active directory or something.
Thanks In Advance
/ Stefan
I´m using windowsauthentication in my asp.net 2.0 website. I have some
problems using the rolemanager. I´m using the AuthorizationStoreRoleProvider
to perform "role checks" against active directory (win 2000).
The problem is that the User.Identity.Name is like <domain>\<user> and I
think that is what is used when checking roles, but it only works for me if i
only supply the <user> when checking a role.
Some output :
?user.Identity.Name
"myDomain\Steve"
?user.IsInRole("myRole")
False
?roles.IsUserInRole("Steve", "myRole")
True
?roles.IsUserInRole("myDomain\Steve", "myRole")
False
The problem here is that I´m using securitytrimming so that the user only
see´s links to pages which they have access to and this does not work becuase
of this. What can I do about this? Can i change something in my configuration
or can I change some property in active directory or something.
Thanks In Advance
/ Stefan