Re: ADUC Queries - Members of Security Group
- From: Sand Fly <SandFly@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Feb 2008 07:42:00 -0800
Thank you for taking the time to provide alternatives as I now have a clearer
understanding of how this technology works. I had tried several different
formats and it appears all of the wrong ones.
One final question, is it possible to include somethig like a select
statement to further define the query? I have several OUs of users and I was
hoping to not have to do a lot of cross referencing.
Where PA was at the top of the directory structure the users OU the users OU
flows from it as well.
PA=OU
LD=OU
USERS=OU
I appologize for sounding needy. I just have too much on my plate at the
moment with other projects comming due. Thanks again for the help.
"Richard Mueller [MVP]" wrote:
.Can someone point out where I am going wrong please. This should be
simple.
I need to list the users who are a member of a security group.
If the conical name of the group is "a.b.c.d.com/PA/GROUPS/SEC GRP" it is
my
understanding that a custom search as such
"(objectCategory=person)(objectClass=user)(member Of=cn=SEC
GRP,ou=GROUPS,ou=PA,dc=a,dc=b,dc=c,,dc=c,dc=com)" should return a list of
users but it doesn't. The conical name came from looking at the
properties of
the SEC GRP.
When looking at ADUC expanded it looks like this:
a.b.c.d.com
PA=OU
GROUPS=OU
SEC GRP=Security Group
I tried exporting it and importing it but nothing works; I just get an
empty
list. I have permissions to modify within PA. Any insight?
To retrieve user members I would suggest:
(&(objectCategory=person)(objectClass=user)(memberOf=cn=Sec
Grp,ou=Groups,ou=PA,dc=a,dc=b,dc=c,dc=d))
However, to retrieve members of any class (users, contacts, groups,
computers) you can use:
(memberOf=cn=Sec Grp,ou=Groups,ou=PA,dc=a,dc=b,dc=c,dc=d)
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
- Follow-Ups:
- Re: ADUC Queries - Members of Security Group
- From: Richard Mueller [MVP]
- Re: ADUC Queries - Members of Security Group
- References:
- Re: ADUC Queries - Members of Security Group
- From: Richard Mueller [MVP]
- Re: ADUC Queries - Members of Security Group
- Prev by Date: RE: ADUC Queries - Members of Security Group
- Next by Date: Re: Lost A Domain Controller
- Previous by thread: Re: ADUC Queries - Members of Security Group
- Next by thread: Re: ADUC Queries - Members of Security Group
- Index(es):
Relevant Pages
|
|