That is pretty much the only way to do it. The proxyAddresses attribute is multivalued and if you ask for it, you get every value in it which is the x400, the smtp, the lotus notes, the ibm email, etc.
I actually wrote a perl script once to go do all this digging and verification of proxyaddresses, I will see if I can dig it up. joe -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Sent: Monday, August 09, 2004 4:33 PM To: [EMAIL PROTECTED] Subject: Re: [ActiveDir] Refining an LDAP search Perfect. Works like a charm.... Thanks On Mon, 9 Aug 2004 11:57:31 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I hope Joe doesn't get all worked up if I confess that I have not used > adfind > (yet) :). But, I would assume you should be able to do something like this: > > adfind -b dc=test,dc=com cn proxyaddresses|find /i "SMTP">proxy.txt > > This depends on HOW ADFIND output its result. > > Sincerely, > > D�j� Ak�m�l�f�, MCSE MCSA MCP+I > Microsoft MVP - Directory Services > www.readymaids.com - we know IT > www.akomolafe.com > Do you now realize that Today is the Tomorrow you were worried about > Yesterday? -anon > > ________________________________ > > From: [EMAIL PROTECTED] on behalf of Steve > Sent: Mon 8/9/2004 9:13 AM > To: [EMAIL PROTECTED] > Subject: [ActiveDir] Refining an LDAP search > > > > > Using Joe's most excellent adfind utility, I'm searching though AD > looking for all proxyaddressess and then piping it to a file so it can > be searched for duplicates. > > adfind -b dc=test,dc=com cn proxyaddresses >proxy.txt > > This works great and has been a great help in cleaning up duplicate > proxyaddresses names. > > However, this gives all the proxy address (x400, x500, smtp, MS, and > CCmail) associated with an object. > > The question is: How do I change the search to only show SMTP addresses? > > Thanks! > List info : http://www.activedir.org/mail_list.htm > List FAQ : http://www.activedir.org/list_faq.htm > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ > > List info : http://www.activedir.org/mail_list.htm > List FAQ : http://www.activedir.org/list_faq.htm > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ > List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
