|
>I'll leave it to Brian or Deji or one
of the other vbscript guys to come up with the equiv vbscript code. >Once you get to here, the next step is
inevitably to start asserting that the addresses are valid in format and
characters and labels, etc. That is when it starts to get tough. I have a tool
to do this task that’s almost done, at least finding dupes. When it’s
testable, I’ll post here. As far as part
2, I’m open to ideas to add a /illegal switch or something. Happy New
Years! --Brian From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of joe Hmm I think I previously posted a script
that does this to the list, at least that basic functionality.I can't find it
though so here is a basic one again. We have definitely discussed this a
couple of times previously though. It is pretty simple functionality, simply
form a query of base: "" port: global catalog aka 3268 filter: proxyaddresses=* then parse through all of the returned
proxyaddresses and slap them into a hash with the proxy address normalized as
the key. If the hash entry exists, tack on the new DN to the value. At the end
chase through all hash entries looking for entries with multiple values. In
perl I recommend using a hash value of an array to make it easiest. The adfind ldap query dumped to a
testpa.txt file would look like adfind -gc -b
"" -f proxyaddresses=* proxyaddresses > testpa.txt Of course for more advanced checking, you
probably also want to make sure legacyExchangeDNs don't dupe any X500
proxyaddresses because that would be a bad dupe as well. I will leave that as
an exercise for the class. Anyway, dump the above command to a text
file. Use ADCSV to convert to a CSV file. Tell ADCSV to use # to separate
multivalue attribs because semicolon's won't work for this case. adcsv /infile:testpa.txt /mvdelim:# Should give you a text file like: DN;proxyAddresses; <SNIP> Now build a perl script that looks through
all lines of the file and shoves the values into the hash and then outputs the
hash entries that have multiple values. Here would be a basic script to do it. $pahash=(); foreach
$thiskey (sort keys %pahash) I'll leave it to Brian or Deji or one of
the other vbscript guys to come up with the equiv vbscript code. Once you get to here, the next step is
inevitably to start asserting that the addresses are valid in format and
characters and labels, etc. That is when it starts to get tough. joe From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manjeet All, I am facing a lots of problem due to duplicate proxy address in active
directory. Some of my user's mails are bouncing back due to this. I have tried
Active directory search but no result found. I am looking for a good tool by
which I can search out the duplicate proxy address and delete them. I was trying dupproxy.exe but its giving error than can not open LDAP. Your early help will pe appericiated. Thank You, Manjeet Do you Yahoo!? |
- RE: [ActiveDir] How to find duplicate proxy address in Ac... Brian Desmond
- RE: [ActiveDir] How to find duplicate proxy address ... Michael B. Smith
