Re: LDAP Query Members

From: Joe Richards [MVP] (humorexpress_at_hotmail.com)
Date: 06/27/04


Date: Sun, 27 Jun 2004 12:38:48 -0400

Search Base: Whereever you know that the group is under, if you know the dn for
the group even better.

Search Scope: Depends on base

Filter: Depends on what you know.

attribute to return: member

For instance if you know the DN of the group, you could do a base level search like

base: "cn=finance dl,ou=ouname,dc=domain,dc=com"
scope: base
filter: objectclass=*
attributes returned: member

adfind example of this

adfind -b "cn=finance dl,ou=ouname,dc=domain,dc=com" -f "objectclass=*" -s base
member

If you know that it is somewhere in a given domain you could do a subtree search
from the domain:

base: "ou=ouname,dc=domain,dc=com"
scope: base
filter: &(objectcategory=group)(name=finance dl)
attributes returned: member

adfind example of this

adfind -b "ou=ouname,dc=domain,dc=com" -f "&(objectcategory=group)(name=finance
dl)" member

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net
Warren Sklar wrote:
> Hi,
> 
> I am trying to get an LDAP query that will actually give 
> me the user names of people in a particular Distribution 
> List (Exchange 2000 / Windows 2000 / AD).  So for example, 
> if Mary, John and Jack are in the Finance DL, the query 
> should result in Mary, John and Jack and not the name of 
> the list itself.
> 
> Is this possible?
> 
> Thanks,
> Warren
> 


Relevant Pages

  • Re: Why connot declare a static member of STRUCT or UNION?
    ... scope, or function prototype scope. ... but a member of that object to have internal linkage (or vice ... the struct definition is visible. ... dynamically allocated instance is free'd, ...
    (comp.lang.c)
  • Re: A *real* observation report
    ... my Astronomik CLS filter (an acronym for "City Light Suppression," ... I'm sure it is a great scope, the dobs are easy to use. ... my open bedroom window. ... Since then, I've used my Dob as an observatory scope, although I ...
    (sci.astro.amateur)
  • Re: Black River Astronomy Society 2005 Ohio Turnpike Astronomy Association Convention Observing Rep
    ... Anticipating Mars rise in a couple of hours, I went inside and bought a Mars ... member who was selling used ones for five bucks each. ... an orange filter would be best. ... attend Hidden Hollow in Mansfield at the end of the month, ...
    (sci.astro.amateur)
  • Re: New 80mm triplet refractors from Apogee Inc
    ... > when I said refocusing was possible with a B&W CCD camera, ... I wouldn't want to blame a scope for field rotation ... exposures should be not detrimental to the final quality, ... >> Only if you can apply the filter before the lens/telescope. ...
    (sci.astro.amateur)
  • Re: Next Record If by date?
    ... > a current member or an old member and then only including the current members ... I also like the filter idea, but I don't usually use the merge ... >>> I have an excel spreadsheet listing people with a start date and end date. ... the newsgroup and not by e-mail :-) ...
    (microsoft.public.word.mailmerge.fields)

Quantcast