Does IsInRole work with ActiveDirectory?

G

Guest

Does IsInRole work with ActiveDirectory? If so, how do you format the group
name?

I am getting false for a group that I know should return true. I am using
Principal.IsInRole("DOMAINNAME[DNS SUFFIX]\GROUPNAME")

Thanks
 
M

Morten Wennevik

Hi vbMental,

To my knowledge IsInRole is meant for the local machine groups only, ie
not Active Directory groups. I may be horribly wrong though.
 
G

Guest

Thanks, I just found it how to use it with AD. The problem was how to specify
the syntax of the group. I'll use it now, as flaky as it is - and hopefully
it will get upgraded in future versions of the framework.
 
P

Paul Clement

¤ Hi vbMental,
¤
¤ To my knowledge IsInRole is meant for the local machine groups only, ie
¤ not Active Directory groups. I may be horribly wrong though.

It isn't restricted to the local machine. It can be used for built-in groups, local groups or domain
groups.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
G

Guest

And the syntax is, for us uninformed?

vbMental said:
Thanks, I just found it how to use it with AD. The problem was how to specify
the syntax of the group. I'll use it now, as flaky as it is - and hopefully
it will get upgraded in future versions of the framework.
 

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

Top