Sun Java System Directory Server Enterprise Edition 6.0 Administration Guide

Setting Multi-Valued Properties With dpconf

Certain Directory Proxy Server properties can take multiple values. The syntax to specify these values is as follows:


$ dpconf set-container-prop -h host -p port container-name \
 property:value1 property:value2

For example, to set multiple writable attributes for an LDAP data view named my-view, use this command:


$ dpconf set-ldap-data-view-prop -h host1 -p 1389 my-view \
 writable-attr:uid writable-attr:cn writable-attr:userPassword

If you add or modify a value for a multi-valued property that already contains values, you must reset all the values. For example, in the scenario described previously, if you want to add sn as a writable attribute, you must include all the other writable attributes in the command:


$ dpconf set-ldap-data-view-prop -h host1 -p 1389 my-view \
 writable-attr:uid writable-attr:cn writable-attr:userPassword writable-attr:sn

The same rule applies if you want to remove a value. So, to remove userPassword from the list of writable attributes in the previous example, use this command:


$ dpconf set-ldap-data-view-prop -h host1 -p 1389 my-view \
 writable-attr:uid writable-attr:cn writable-attr:sn