Oh you mean like the -rb switch aka relative base... That went in for
V01.19.00 back in August 2004. 

adfind -default -rb ou=myou blah blah blah blah

It is a great especially for making generic scripts. 

This is from adfind /??

   -null         Use null base.
   -root         Determine and use root partition for BaseDN.
   -config       Determine and use configuration partition for BaseDN.
   -schema       Determine and use schema partition for BaseDN.
   -default      Determine and use default partition for BaseDN.
   -rb xx        Relative Base, use with special BaseDN's above.
                     So you could specify -default and -rb cn=users.

  joe


--
O'Reilly Active Directory Third Edition -
http://www.joeware.net/win/ad3e.htm 
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Desmond
Sent: Saturday, January 06, 2007 1:14 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] ADFind help

Do you have such a feature that combines ou=myou with whatever
searchroot -default resolves? It occurred to me today that that would
save a lot of typing. 

Thanks,
Brian Desmond
[EMAIL PROTECTED]

c - 312.731.3132


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of joe
Sent: Saturday, January 06, 2007 12:51 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] ADFind help

Yep that will do it.

It can be further refined. :)

I put in a special shortcut for this specific case

adfind -b "ou=myou,dc=mydomain,dc=com" -sc exchaddresses

If you just want the SMTP addresses, I.E. you don't care about X400
addresses which is most people, you can do the following:

adfind -b "ou=myou,dc=mydomain,dc=com" -sc exchaddresses:smtp

Which will only diplay SMTP addresses from proxyAddresses. The filter
below
will only return objects with SMTP addresses but it will still display
any
other types of addresses in the proxyaddresses attribute such as X400,
SIP,
X500, SNADS, etc. 

For the curious that expands out to the following switches/args:

Selected Switches
    -b ou=myou,dc=mydomain,dc=com
    -f (&(mailnickname=*)(proxyaddresses=smtp*))
    -gc
    -mvfilter proxyaddresses=smtp

Selected Attributes
    proxyAddresses


I am planning on releasing a new version of AdFind (V01.35.00) in the
next
day or three (may even upload it tonight still if I don't run out of
gas).
It has a couple bug fixes around the ACL output and some additional ACL
options. 

  joe


--
O'Reilly Active Directory Third Edition -
http://www.joeware.net/win/ad3e.htm 
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Desmond
Sent: Friday, January 05, 2007 1:56 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] ADFind help

Set your filter to (proxyAddresses=smtp*) to get all the smtp addresses.
Just do * for stuff like x400 also.

Adfind -b "ou=myou,dc=mydomain,dc=com" -f "(proxyAddresses=*)"

Thanks,
Brian Desmond
[EMAIL PROTECTED]

c - 312.731.3132

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry Wahlers
Sent: Friday, January 05, 2007 1:45 PM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] ADFind help

Hello, colleagues,

I'm sorry to have to ask this, but I can't figure out how to get this
information for a particular client. She wants a list of all the primary
email addresses and their secondary email addresses (aliases) for a
particular OU in Active Directory. This OU is named FND, and it is at
the top of mydomain.mydepartment.local. It has sub-OU's as well.

I figure ADFind will do the job, but I just am not familiar enough with
the tool to get the information out.

Can somebody help me? 

-- 
Larry Wahlers
Concordia Technologies
The Lutheran Church - Missouri Synod
mailto:[EMAIL PROTECTED]
direct office line: (314) 996-1876
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx

Reply via email to