Ask a Question related to ASP.NET Security, Design and Development.
-
Dennis Storm #1
isInrole
I am using isInRole function to check if a user is in a
group. It works ok except it will suddenly stop working
and I will have to reboot to get it to work again. Any
ideas?
Dennis Storm Guest
-
IsInRole Performance Issue
Hi, We have a very large AD here and I am noticing that the WindowsPrinciple IsInRole function is taking upwards of 1 second to respond with just a... -
WindowsPrincipal.IsInRole() is Being Flaky. Help!!
Its just being inconsistent. I'm in 3 different Groups in AD. ..IsInRole("Groupx") returns true ..IsInRole("Groupy") returns true... -
Problems with IsInRole
I'm having problems with WindowsPrincipal.IsInRole. It's returning false when it should return true. I've written some test code that uses... -
Help with IsInRole
Hi, I am using windows integrated authentication aon my intranet. How do I check if a user is a member of a group in active directory. I have the... -
User.IsInRole not redirecting
Hi there, I have been reading up on Authorization and role based security for a couple of days now, and am trying to implement this in my... -
Nakul #2
Re: isInrole
Hi,
If you make any changes in the user's membership i.e add or delete him from
some groups you will need to relogin to the workstation. This is incase your
application is a Win Forms based. For instance:
I belong to groupA,groupB,groupC
IsUserInRole("groupA") returns True
Now I remove myself from groupA and now I belong to only groupB,groupC. I do
not re-login to my workstation
IsUserInRole("groupA") returns True
Now I relogin in my workstation
IsUserInRole("groupA") return False
Also the IsUserInRole case sensitive. Take care of that also.
Hope this would help
Thanks
Nakul
"Dennis Storm" <hnj0251@mail.drms.dla.mil> wrote in message
news:0a4a01c3cfca$e9de9dd0$a601280a@phx.gbl...> I am using isInRole function to check if a user is in a
> group. It works ok except it will suddenly stop working
> and I will have to reboot to get it to work again. Any
> ideas?
Nakul Guest
-
arjun #3
isInRole
Hi All,
I am developing a A webpage to be seen in a page viewer
webpart(Sharepoint 2003).The page is supposed to check for the current
user name and then check the user membership in some local group
membership.But here I am failing .The isinRole call on the Principal
object is returning true
for buitin groups and some local groups but not ALL.
I read in one of the previous threads that this was a bug in Framework
1 in which all groups are not retrieved.
[url]http://support.microsoft.com/default.aspx?scid=kb;en-us;q321562[/url]
SP3 takes care of it.
However I have Framework 1.1 ...So the patches are not working...
Can anyone tell me if this bug is fixed in v1.1?
The code I am using is here is something like this
HttpContext.Current.User.IsInRole("<machinename>\< group name>")
I have tried all combo of group names even the case sensitive ones....
Please do point out if something is amiss?
My box is in an active directory domain.The configuration of my box is
:Windows Server 2003,.net Framework v1.1,Windows SharePoint Services
2.0,SharePoint Portal Server 2003
Thanks in Advance,
Arjun
arjun Guest



Reply With Quote

