[389-users] Easy way to add an object class value to all users

Michael Ströder michael at stroeder.com
Tue Nov 3 19:41:15 UTC 2009


Vince Tingey wrote:>
> Michael Ströder wrote:
>> Vince Tingey wrote:
>>   
>>> Is there an easy way to add an object class value to all the users in my
>>> 389 Directory Server?
>>>     
>> I'd say yes. But what "easy" means to you depends on your skills.
>>
>> You could generate a LDIF file containing change records for all your entries.
>> Or even better use your favourite scripting language to do the modifications
>> with the help of a decent LDAP module.
>
> Yeh I thought I would have to resort to something like that.  Generating
> a huge LDIF file containing change records for each user was what I was
> hoping to avoid or find some shortcut for...

It's not that hard.

> I guess I'm going to have to look at writing a PHP script now or
> something.  Too bad I can't just select all the users in the Java
> console and add the class...

Depending on the schema you might have to add some attributes too...

Ciao, Michael.




More information about the 389-users mailing list