[389-users] Rename ldap entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

in my ldap, i have a series of entry that are:

uid = xxxx, ou=People,dc=test.com, o=company, dc=example, dc=com
.......
uid = xxxx, ou=People,dc=test.com, o=company, dc=example, dc=com
uid = xxxx, ou=People,dc=test1.com, o=company, dc=example, dc=com
.......
uid = xxxx, ou=People,dc=test1.com, o=company, dc=example, dc=com
uid = xxxx, ou=People,dc=test2.com, o=company, dc=example, dc=com
.......
uid = xxxx, ou=People,dc=test2.com, o=company, dc=example, dc=com
uid = xxxx, ou=People,dc=test3.com, o=company, dc=example, dc=com
.......
uid = xxxx, ou=People,dc=test3.com, o=company, dc=example, dc=com

Foreach domain (dc=test*.com), i have, cos, aci and role that are
interconnected.

An aci example:
aci: (targetattr = "subschemaSubentry || companyUsedQuota") (version
3.0;acl "
 admin update used quota";allow (read,compare,search,write)(roledn =
"ldap://
 /cn=admin role,o=company, dc=example, dc=com");)

I need to rename my o=company in o=company1. Any ideas?

I thought that if I do a db2ldif, and export my db in ldif file, i can run:

sed -i s/o=company,/o=company1,/g ldiffile.ldif

But it doesn't work becouse db2ldif cut the lines after 75 characters.
Can i create an export that doesn't truncate the row? Is there a workaround?

Any suggestion is welcome :-)

Thanks
--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux