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

Re: Add an objectClass to all entry



Adam Williams wrote:
Ciao All
I have following set up (in production):
dc=example,dc=com
|
uid=pippo (with some objectClass)
|
uid=pluto ( with the same objectClass)
|
.........( with the same objectClass)
How to add an objectClass (present in the schema) to ALL entry, at the same time?


Iterate with a scripting language.


like this:

1)ldapsearch ----> file.ldif

2) file.ldif---> add_objectclass_for_any_entry.sh ----> file2-ldif

3) ldapmodify file2.ldif

???