Re: LDAP Query Members
From: Joe Richards [MVP] (humorexpress_at_hotmail.com)
Date: 06/27/04
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: LDAP Query Members"
- Previous message: Warren Sklar: "Re: LDAP Query Members"
- In reply to: Warren Sklar: "LDAP Query Members"
- Messages sorted by: [ date ] [ thread ]
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 >
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: LDAP Query Members"
- Previous message: Warren Sklar: "Re: LDAP Query Members"
- In reply to: Warren Sklar: "LDAP Query Members"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|