Short story first... find UltraEdit on cnet.com...now the long stor
about this APP.
I was introduced to a tool called UltraEdit about a year ago. Since
am still learning how to script with ADSI, UltraEdit has been a Go
send in making thousands of changes to Ldp file.
What you would do is create your export through LDIFDE. After that
open the LDP file in UltraEdit. Create a macro in the app whic
records your key strokes. Then have it replay that macro to make al
those changes in a blink of an eye. Once you play with it for a bit..
it gets easy.
I.E. - in the exported ldp file. you are left with
DN: CN=Anon User,OU=xxx,DC=mycompany,DC=com
changeType: add
physicalDeliveryOfficeName: Manila
-
Since UltraEdit is a "dumb" app, it does EXACTLY what you tell it t
do. I would in the case above. Start recoding your macro. At th
beginning of the file, start by doing a search for the word "add.
replace it with "modify." add a return. Type "replace
physicalDeliveryOfficeName." Find Manila. Replace with Sydney. Sto
recording your macro. This will give you the result below.
DN: CN=Anon User,OU=xxx,DC=mycompany,DC=com
changeType: modify
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: Sydney
-
Great. Now what do I do. Well. By making that tedious cange once. yo
can replay that macro to the end of your document. so if you have 50
entries that need to be changd... you can do it all in about 2
seconds...literally.. I know I've done it. Then you can make th
change.
Word of advice.... I would cut your LDP import to a couple entries.
see if it works.... then do the rest. no need to mess up 500 entries.
You can download Ultraedit to try for for free from CNET.com
*Anonymous,
From there I think that you know what to do:
DN: CN=Cary Shultz,OU=xxx,DC=mycompany,DC=com
changeType: modify
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: Sydney ( or whatever )
-
DN: CN=Anon User,OU=xxx,DC=mycompany,DC=com
changeType: modify
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: Sydney
-
Since everything under the first line ( DN: CN=.....DC=com ) will b
the
same ( is that a correct assumption? ) you can simply copy and past
the
second, third and fourth lines to each DN ( aka user ). This shoul
really
speed things up for you.
This is still potentially a lot of manual work. There has to be
better
way!
HTH,
Cary
[/QUOTE]
-
phillip pin