Hi, I want to fix several entries of mail attribute mail that have an error something like this: *john at domain.com *joe at domain.com *mary at domain.com and so on. I want to to change them to: john at domain.com joe at domain.com mary at domain.com (Delete asterisks) How can I perform it in one (or at least few) steps? thanks in advance! -- -- Open Kairos http://www.openkairos.com Watch More TV http://sebelk.blogspot.com Sergio Belkin -
Sergio Belkin wrote:> Hi, > > I want to fix several entries of mail attribute mail that have an > error something like this: > > *john at domain.com > *joe at domain.com > *mary at domain.com > > and so on. > > I want to to change them to: > > john at domain.com > joe at domain.com > mary at domain.com > > How can I perform it in one (or at least few) steps?Write a correct ldif file and use ldapmodify to make modifcations. See the ldapmodify manual page for examples on how to use that. Cheers, Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20081002/e02f9243/attachment-0003.sig>
2008/10/2 Ralph Angenendt <ra+centos at br-online.de>:> Sergio Belkin wrote: >> Hi, >> >> I want to fix several entries of mail attribute mail that have an >> error something like this: >> >> *john at domain.com >> *joe at domain.com >> *mary at domain.com >> >> and so on. >> >> I want to to change them to: >> >> john at domain.com >> joe at domain.com >> mary at domain.com >> >> How can I perform it in one (or at least few) steps? > > Write a correct ldif file and use ldapmodify to make modifcations. See > the ldapmodify manual page for examples on how to use that. > > Cheers, > > Ralph > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >Thanks, I know about ldapmodify, but I wonder if someone knows other way yo do that, -- -- Open Kairos http://www.openkairos.com Watch More TV http://sebelk.blogspot.com Sergio Belkin -
Hi, On Wed, Oct 1, 2008 at 20:56, Sergio Belkin <sebelk at gmail.com> wrote:> I want to fix several entries of mail attribute mail that have an > error something like this:I use "ldapvi" that opens your whole LDAP database in an editor and allows you to do the changes using the editor. Once you are done with it, it will see which entries were modified, create the LDIF appropriately and apply it to the LDAP server. It's really easy to do this kind of global changes. See here: http://www.lichteblau.com/ldapvi/ And Dag has RPMs: http://dag.wieers.com/rpm/packages/ldapvi/ HTH, Filipe