Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: [ActiveDir] Using ADFIND to get nested group membership
Prev Next
You are not authorized to post a reply.

AuthorMessages
MikeLeoneUser is Offline

Posts:55

09/01/2010 8:21 PM  
Following an example I found online (I know, never trust anything on
the Interwebs ...), I am trying to find all members, including nested
memberships, of a group. But I seem to be failing miserably, and I
know not why ....


Z:\>adfind -f "(&(objectClass=user)(objectCategory=person)(`memberOf:1.2.840.113556.1.4.1941:=cn=CN=Remote
Control Operators,CN=Users,DC=...`))"
0 Objects returned

Note that the AD group, "Remote Control Operators", has a space in the
name, if that matters.

So why isn't this working? There are 3 groups as members, and those
groups have their own members (which is what I am trying to list). So
what am I doing wrong?

skradelUser is Offline

Posts:177

09/01/2010 8:25 PM  
Your search filter appears to have some errant backticks (`) in it.
Otherwise it should probably work.

Also, you didn't mention the version of your DC. I think the nested
group search control is for 2008 and newer.

--Steve

On Wed, Sep 1, 2010 at 3:19 PM, Michael Leone <oozerdude@gmail.com> wrote:
> Following an example I found online (I know, never trust anything on
> the Interwebs ...), I am trying to find all members, including nested
> memberships, of a group. But I seem to be failing miserably, and I
> know not why ....
>
>
> Z:\>adfind -f "(&(objectClass=user)(objectCategory=person)(`memberOf:1.2.840.113556.1.4.1941:=cn=CN=Remote
> Control Operators,CN=Users,DC=...`))"
> 0 Objects returned
>
> Note that the AD group, "Remote Control Operators", has a space in the
> name, if that matters.
>
> So why isn't this working? There are 3 groups as members, and those
> groups have their own members (which is what I am trying to list). So
> what am I doing wrong?
>
>

MikeLeoneUser is Offline

Posts:55

09/01/2010 8:31 PM  
On Wed, Sep 1, 2010 at 3:24 PM, Steve Kradel <skradel@zetetic.net> wrote:
> Your search filter appears to have some errant backticks (`) in it.
> Otherwise it should probably work.

The backticks were in the example - I just changed the group name in
the example to my own (using the DN of the group I am looking to
expand). Removing the backticks made no difference - still didn't find
anything.

> Also, you didn't mention the version of your DC.  I think the nested
> group search control is for 2008 and newer.

Ratz! I am on Win2003 ....

I am using the latest ADFIND - AdFind V01.42.00cpp

mklineUser is Offline

Posts:83

09/01/2010 8:49 PM  
In the memberof section you have ":=cn=CN=" take that second CN out
(so cn=remote....

There are also some limitations of trying to find all the groups.
joe discussed it in his blog entry below (and in the comments) and he
says it better than I can :)

http://blog.joeware.net/2007/08/01/939/

Thanks

Mike



On 9/1/10, Michael Leone <oozerdude@gmail.com> wrote:
> On Wed, Sep 1, 2010 at 3:24 PM, Steve Kradel <skradel@zetetic.net> wrote:
>> Your search filter appears to have some errant backticks (`) in it.
>> Otherwise it should probably work.
>
> The backticks were in the example - I just changed the group name in
> the example to my own (using the DN of the group I am looking to
> expand). Removing the backticks made no difference - still didn't find
> anything.
>
>> Also, you didn't mention the version of your DC.  I think the nested
>> group search control is for 2008 and newer.
>
> Ratz! I am on Win2003 ....
>
> I am using the latest ADFIND - AdFind V01.42.00cpp
>
>

MikeLeoneUser is Offline

Posts:55

09/01/2010 9:04 PM  
On Wed, Sep 1, 2010 at 3:47 PM, mike kline <mkline@gmail.com> wrote:
> In the memberof section you have ":=cn=CN="  take that second CN out
> (so cn=remote....

AH HA! Yes, that was it ... silly of me, really ...

> There are also some limitations of trying to find all the groups.
> joe discussed it in his blog entry below (and in the comments) and he
> says it better than I can :)
>
> http://blog.joeware.net/2007/08/01/939/

I will read up on that. And read the blog, now that I know about it. :-)

Thanks SO much ....

listmailUser is Offline

Posts:822

09/02/2010 7:30 AM  
The LDAP_MATCHING_RULE_IN_CHAIN query matching rule is in Windows Server
2003 SP2 and better versions of AD.

joe

--
O'Reilly Active Directory Fourth Edition -
http://www.joeware.net/win/ad4e.htm
Blog: http://blog.joeware.net




-----Original Message-----
From: activedir-owner@mail.activedir.org
[mailto:activedir-owner@mail.activedir.org] On Behalf Of Steve Kradel
Sent: Wednesday, September 01, 2010 3:24 PM
To: activedir@mail.activedir.org
Subject: Re: [ActiveDir] Using ADFIND to get nested group membership

Your search filter appears to have some errant backticks (`) in it.
Otherwise it should probably work.

Also, you didn't mention the version of your DC. I think the nested
group search control is for 2008 and newer.

--Steve

On Wed, Sep 1, 2010 at 3:19 PM, Michael Leone <oozerdude@gmail.com> wrote:
> Following an example I found online (I know, never trust anything on
> the Interwebs ...), I am trying to find all members, including nested
> memberships, of a group. But I seem to be failing miserably, and I
> know not why ....
>
>
> Z:\>adfind -f
"(&(objectClass=user)(objectCategory=person)(`memberOf:1.2.840.113556.1.4.19
41:=cn=CN=Remote
> Control Operators,CN=Users,DC=...`))"
> 0 Objects returned
>
> Note that the AD group, "Remote Control Operators", has a space in the
> name, if that matters.
>
> So why isn't this working? There are 3 groups as members, and those
> groups have their own members (which is what I am trying to list). So
> what am I doing wrong?
>
>


You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > [ActiveDir] Using ADFIND to get nested group membership



ActiveForums 3.7
Friends

Friends

VisualClickButoton
Members

Members

MembershipMembership:
Latest New UserLatest:MrPTSai
New TodayNew Today:0
New YesterdayNew Yesterday:0
User CountOverall:5234

People OnlinePeople Online:
VisitorsVisitors:31
MembersMembers:0
TotalTotal:31

Online NowOnline Now:

Ads

Copyright 2009 ActiveDir.org
Terms Of Use