[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Need to make a database wide change



Hi Chris,

> How do I make the change to all entries?  Do I need to create a second
> database?  If so, how do I get the data from one database to another if
> the text file that started the database is not current?

  With restructing here I've had a similar thing to do. I had to change
everyone with XXX@mpce.mq.edu.au to XXX@ics.mq.edu.au. The following
worked for me.

ldapsearch -D admin_dn -w admin_passwd "(mail=*mpce.mq.edu.au)" mail |
sed "s/mpce.mq.edu.au/ics.mq.edu.au/" | ldapmodify -D admin_dn -w
admin_passwd -r


	Rich

-- 
Rich Buggy
Internet Services Technical Administrator
Division of Information Services
Macquarie University
E-mail: Rich.Buggy@mq.edu.au
Phone: (02) 9850 6515