[Logo] LDAPSoft LDAP And Active Directory Tools Community Forums
  [Search] Search   [Register] Register /  [Login] Login 
 
Mass Edit/Update Entries  XML
Forum Index » General Discussion
Author Message
mj



Joined: 01/07/2008 16:24:02
Messages: 2
Offline

Our company recently acquired a new company and I need to update their mail address to new domain, I am unsure what is the best approach?

Any thoughts\ideas whould be appreciated.

Thanks
support



Joined: 27/06/2008 19:01:18
Messages: 123
Offline

You can update those entries using ldif modify

To update the entries follow the following steps:

1. Select top level container which contains all the entries
2. Right Click Context Menu - Export - LDIF Export
3. Select 'Select from the List ...' from the Returning Attributes drop down
4. Check mail attribute from the dialog and click ok
5. Click 'Finish' to export the results.
6. Modify the ldif file with new email addresses and add the lines

changetype: modify
replace: mail

(Make sure about "-" and the space between the entries) - You ldif file should look like the following
(except the dn and mail attribute values)

#Start of file (Donot copy this line)

dn: cn=Larry Fine,ou=MemberGroupA,o=stooges
changetype: modify
replace: mail
mail: test@test.com
-

dn: cn=Moe Howard,ou=MemberGroupA,o=stooges
changetype: modify
replace: mail
mail: test@test.com
-

#End of file (Donot copy this line)

7. Save the file
8. Make sure that you are modifying the correct entries (first try only with one entry)
9. Select Import|Ldif Import from the top menu
10. Select the correct file to import and click start importing.
mj



Joined: 01/07/2008 16:24:02
Messages: 2
Offline

What if I want to keep the old attribute value (may be in a different attribute)
support



Joined: 27/06/2008 19:01:18
Messages: 123
Offline

In that case, make sure that the attribute already exist
and modify your ldif like this For e.g to add the old value to attribute 'oldemail'

dn: cn=Larry Fine,ou=MemberGroupA,o=stooges
changetype: modify
replace: mail
mail: test@test.com
-

dn: cn=Larry Fine,ou=MemberGroupA,o=stooges
changetype: modify
add: oldemail
oldemail: oldemailaddress.com
-

dn: cn=Moe Howard,ou=MemberGroupA,o=stooges
changetype: modify
replace: mail
mail: test@test.com
-

Please make sure that you are updating the correct entries.
 
Forum Index » General Discussion
Go to:   
[Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing  
Powered by JForum 2.1.9 © JForum Team