[Date Prev][Date Next]
Re: adding an attribute.
with a simple bash script you can do that
step 1) search ldap directory and extract the pair (dn,oldattr) (where dn is something like that "dn: uid=user,ou=people,dc(o)=domain,dc(c)=net" and oldattr is something like that "attribute: value"
step 2) foreach pair you run and ldapmodify -f file .... where file is something like that
man ldapsearch + man ldapmodify
On 12/4/06, Anant S Athavale <email@example.com> wrote:
I use openldap 2.2.13 on RHEL and having 4000+ entries.
I have the following requirement.
1. Add one attribute for all the records.
2. Set a value to it, which is already set for another attribute of
the same record.
A SQL command of the following type would have done this job, if my
data was in SQL.
Is there any equivalent Openldap command, which can be used to do this.