IsInRole howto troubleshoot

H

Harold

I have added a new active directory security group and added myself to it.
IsInRole is returning False for this new group. The user and the group are
in the same domain.

The group and user was added 24 hours ago, so I think it has had time to
replicate.

I used Reflection to call _GetRoles and the group does NOT show up in this
list. There are however 2 entries in the list that are Nothing.

I used DirectorySearcher to get a list of all the groups the user is in and
this DOES return the group.

What else can be done to figure out why IsInRole is not return True for this
group?

-Harold
 
M

Mary Chipman

In that case, is it possible that you're not using the correct syntax
for custom groups? it should be
winPrincipal.IsInRole("MachineName\RoleName")

--Mary
 
H

Harold

It appears the problem is related to VPN. Once I connect to the domain
(locally, rather than VPN) it works. And now when I go back to VPN it
works. But, when I add another group it does not show up using IsInRole
until I connect to the network locally.

Is there something being refreshed on my system when I connect locally? Is
there some way to manually refresh this information over VPN?

-Harold
 
J

Joe Kaplan \(MVP - ADSI\)

Is it possible that your VPN isn't allowing access to refresh your Kerberos
ticket? It definitely sounds like a network problem and Kerberos tickets
are how your group information from the DC gets to you and gets passed
around to other machines. Kerb runs on port 88.

Joe K.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top