Re: IsinRole function only works with built-in roles
- From: "Scott M" <scott_M@xxxxxxxxxxxxx>
- Date: Thu, 29 Dec 2005 14:58:02 -0600
Bob, I know that on our domain here at work we have to reboot our machine to pick up the new definition from the DC. Have you tried that?
"Bob" <bdufour@xxxxxxxxxx> wrote in message news:OH70eMLDGHA.2320@xxxxxxxxxxxxxxxxxxxxxxx
Additional Info:
I also looked at whoami /groups on my workstation and I notice that the custom groups that User Bob belongs to do not appear in the list. I see 15 user groups. One custom one I created on the local machine, but none that have been created on the DC.
I tested the Isinrole on the Customone on the local machine by specifying the domain name and the local group in the isinrole and that works fine.
So the question becomes, why does my custom groups that bob is a member do not get detected by whoami and by the system procedures that isinrole uses? Sorry can't put it another way?
Any help again greatly appreciated.
Bob
"Bob" <bdufour@xxxxxxxxxx> wrote in message news:%23FSjH6JDGHA.1032@xxxxxxxxxxxxxxxxxxxxxxxThis 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 group, user bob, group TestUsers and then try to determine if My.user.Isinrole("TestUsers") I always get a false, which is incorrect.
If I put Bob as part of Administrators or any other built-in group on the DC and look at My.User.isinrole("Administrators") I get true, which is correct
Is this a bug? I need to determine if my application's user is part of a group I created on my domain controller. If I can't use isinrole to do that, how can I do that? I've looked at the walkthrough for custom authentication but that's not what I need to do. I simply need to be able to see if my user is in a group I created on the domain controller.
Any help would be appreciated.
Bob
.
- Follow-Ups:
- Re: IsinRole function only works with built-in roles
- From: "Peter Huang" [MSFT]
- Re: IsinRole function only works with built-in roles
- References:
- Prev by Date: How can I Debug with no info?!?
- Next by Date: retrieving version number in 2005...
- Previous by thread: Re: IsinRole function only works with built-in roles
- Next by thread: Re: IsinRole function only works with built-in roles
- Index(es):
Relevant Pages
|