easy...
http://java.sun.com/products/jndi/tutorial/basics/directory/modattrs.html
if you want it for all users then you should add an attribute:
while (there is still an entry)
add_attribute ;-)
you could read every DN in an string array maybe and then add the attribute as long there is a string if not break the while...