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.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 hereis something like this
HttpContext.Current.User.IsInRole("<machinename>\< group name>")
Please do point out if something is amiss?
If This thing does not work can anyone give any pointers to a similar
code that achieves this in Visual Basic 6.0
Thanks in Advance,
Arjun 5 2241
HI arjun,,
I don't know if there was a BUG i use IsinRole with the Active
Directory and it works!what i'm thinking you are dong wrong is that i think
its CASE SENSITIVE!
Your code should be good since you said it works for some users..
Try checking for case senstitve and post back if you have more questions.
Patrick
"arjun" wrote: 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.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 hereis something like this HttpContext.Current.User.IsInRole("<machinename>\< group name>") Please do point out if something is amiss? If This thing does not work can anyone give any pointers to a similar code that achieves this in Visual Basic 6.0 Thanks in Advance, Arjun
Hi Patrik,
The bug I was referring to is the following: http://support.microsoft.com/default...;en-us;q321562
I have tried nearly all combo of the local group names every time for
some select groups isInRole is false.Even if a purticular syntax works
for others it fails in question of these groups.I think my prob is
this bug.
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
Can you do a chk with your config. so that if this problem is due to
some software config then we can resolve it?
If you have any other ideas to make this thing work do mention
those...I need this issue resolved on a very critical basis...
Thanks in Advance,
Arjun
"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message news:<14**********************************@microso ft.com>... HI arjun,, I don't know if there was a BUG i use IsinRole with the Active Directory and it works!what i'm thinking you are dong wrong is that i think its CASE SENSITIVE! Your code should be good since you said it works for some users.. Try checking for case senstitve and post back if you have more questions. Patrick "arjun" wrote:
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.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 hereis something like this HttpContext.Current.User.IsInRole("<machinename>\< group name>") Please do point out if something is amiss? If This thing does not work can anyone give any pointers to a similar code that achieves this in Visual Basic 6.0 Thanks in Advance, Arjun
Hi Arjun,
I went through the Page and it says it fails if the user belong to
many GROUPS does that happen in your case?This problem occurs if the combined
length of these group names is greater than 2,048 bytes.
What i noticed in my case was that i tried using forms auth and anytime i
try getting GROUP names it fails and doesn't Authenticate and after removing
my GETGROUP function it authenticates.But i haven't came across such problem
when using Windows Auth...
Try seeing if it returns falls if a particular user belong to too many
GROUPS!!
There should be a workaround for this !!
Keep me posted
Patrick
"arjun" wrote: Hi Patrik,
The bug I was referring to is the following: http://support.microsoft.com/default...;en-us;q321562
I have tried nearly all combo of the local group names every time for some select groups isInRole is false.Even if a purticular syntax works for others it fails in question of these groups.I think my prob is this bug.
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
Can you do a chk with your config. so that if this problem is due to some software config then we can resolve it?
If you have any other ideas to make this thing work do mention those...I need this issue resolved on a very critical basis...
Thanks in Advance, Arjun
"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message news:<14**********************************@microso ft.com>... HI arjun,, I don't know if there was a BUG i use IsinRole with the Active Directory and it works!what i'm thinking you are dong wrong is that i think its CASE SENSITIVE! Your code should be good since you said it works for some users.. Try checking for case senstitve and post back if you have more questions. Patrick "arjun" wrote:
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.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 hereis something like this HttpContext.Current.User.IsInRole("<machinename>\< group name>") Please do point out if something is amiss? If This thing does not work can anyone give any pointers to a similar code that achieves this in Visual Basic 6.0 Thanks in Advance, Arjun
Arjun,
Also try posting your code to :-
the FORUM :- dotnet.framework.aspnet.security
Patrick
"arjun" wrote: Hi Patrik,
The bug I was referring to is the following: http://support.microsoft.com/default...;en-us;q321562
I have tried nearly all combo of the local group names every time for some select groups isInRole is false.Even if a purticular syntax works for others it fails in question of these groups.I think my prob is this bug.
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
Can you do a chk with your config. so that if this problem is due to some software config then we can resolve it?
If you have any other ideas to make this thing work do mention those...I need this issue resolved on a very critical basis...
Thanks in Advance, Arjun
"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message news:<14**********************************@microso ft.com>... HI arjun,, I don't know if there was a BUG i use IsinRole with the Active Directory and it works!what i'm thinking you are dong wrong is that i think its CASE SENSITIVE! Your code should be good since you said it works for some users.. Try checking for case senstitve and post back if you have more questions. Patrick "arjun" wrote:
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.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 hereis something like this HttpContext.Current.User.IsInRole("<machinename>\< group name>") Please do point out if something is amiss? If This thing does not work can anyone give any pointers to a similar code that achieves this in Visual Basic 6.0 Thanks in Advance, Arjun
Hi Patrik,
will keep you posted on any thing new on this.
Thanks Again,
Arjun
"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message news:<06**********************************@microso ft.com>... Arjun, Also try posting your code to :- the FORUM :- dotnet.framework.aspnet.security Patrick
"arjun" wrote:
Hi Patrik,
The bug I was referring to is the following: http://support.microsoft.com/default...;en-us;q321562
I have tried nearly all combo of the local group names every time for some select groups isInRole is false.Even if a purticular syntax works for others it fails in question of these groups.I think my prob is this bug.
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
Can you do a chk with your config. so that if this problem is due to some software config then we can resolve it?
If you have any other ideas to make this thing work do mention those...I need this issue resolved on a very critical basis...
Thanks in Advance, Arjun
"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message news:<14**********************************@microso ft.com>... HI arjun,, I don't know if there was a BUG i use IsinRole with the Active Directory and it works!what i'm thinking you are dong wrong is that i think its CASE SENSITIVE! Your code should be good since you said it works for some users.. Try checking for case senstitve and post back if you have more questions. Patrick "arjun" wrote:
> 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.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 hereis something like this > HttpContext.Current.User.IsInRole("<machinename>\< group name>") > Please do point out if something is amiss? > If This thing does not work can anyone give any pointers to a similar > code that achieves this in Visual Basic 6.0 > Thanks in Advance, > Arjun > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kevin |
last post by:
Hello all,
I'm unable to get the IsInRole method to work with my AD domain. There is a
global group that I am a member of, when I query that group using the
IsInRole method, it returns false.
...
|
by: Alek Davis |
last post by:
Hello,
I noticed an interesting problem. When calling WindowsPrincipal.IsInRole
over dial-up (VPN), this function takes 1-2 minute(s) to return. On the
intranet or when disconnected from the...
|
by: JIM.H. |
last post by:
Hello,
username=user.identity.name
trueFalse=User.IsInRole("myDomain\Administrators")?
First line return user name as administrator but second line returns false? What might be the reason? Or how...
|
by: Peter |
last post by:
Hello!
I have a strange problem with .IsInRole method. When I use this method on my
development machine everything works fine. However when I deploy my
application on a production server this...
|
by: Dave |
last post by:
Hi,
I'm testing the IsInRole method on my app. I'm using Integrated security so
I'm not sure if that has something to do with it. I have a groups table
which I want to secure certain portions...
|
by: Oliver Rainer |
last post by:
Hi, I have the following problem...
Pre-requisites:
Installation of an Asp.net webservice on a IIS5 server (win2k). Anonymous
access is not allowed, only using windows authentication (intranet...
|
by: Bob |
last post by:
I created a usergroup on my W2K AD domain server and called it MyCustomRole
I added my user to it named User Name fully qualified is Mydomain\Bob
I can see that My.user.name Is OK its...
|
by: Bob |
last post by:
This a bit of a second post on same subject, my apologies.
IsinRole function only works with built-in roles. If I create a new group on
my domain controller then add an existing user to that...
|
by: Andy |
last post by:
Hi,
I currently have my application setup and built using Windows
Authentication (WindowsPrincipal). For security checks, I simply do
an IsInRole call on the Principal. The role permissions...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: linyimin |
last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
|
by: erikbower65 |
last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA:
1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: DJRhino1175 |
last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this -
If...
|
by: DJRhino |
last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer)
If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _
310030356 Or 310030359 Or 310030362 Or...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: lllomh |
last post by:
How does React native implement an English player?
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
| |