Table of Contents

Advertisement

7.2.5 Modify

The modify basic option enables you to modify attributes of an object, to add
a may attribute to an object, or to delete a may attribute. If an operation is
not finished successfully, get an error message.
To add or to modify attributes, specify the object, an attribute value pair, and a
DN. The main difference in command arguments between the 'add' operation
and the 'modify' and 'remove' operations is that with 'add', the base DN of the
directory object below which the new entry should be created is specified with
the '--base' argument. For 'modify' and 'remove', the target object is specified
directly with the '--DN' argument.
The following example adds a description to an organizationalUnit with the
dn of ou=berlin,o=mycorp,c=de and modifies the attribute value respectively:
posAdmin.pl --password secret \
--user cn=admin,o=mycorp,c=de \
--DN ou=berlin,o=mycorp,c=de \
--modify --organizationalUnit \
--description 'my description of berlin'
To remove this description, execute:
posAdmin.pl --password secret \
--user cn=admin,o=mycorp,c=de \
--DN ou=berlin,o=mycorp,c=de \
--modify --organizationalUnit --description
Option
Type
--DN
must Distinguished name of the object to modify.
--<object>
must Object with must or may attributes which shall be
--<attribute> must Attribute, for example, –scPosImageVersion.
--<value>
may
Table 7.7: Modify Options for PosAdmin
A further example describes the modification of the POS image name and ver-
sion of the CR POS1 with the dn of cn=POS01,cn=Lab,ou=berlin,o=mycorp,c=de,
using the attributes –scPosImageDn and –scPosImageVersion of the --scWorkstation
object class:
posAdmin.pl --password secret \
--user cn=admin,o=mycorp,c=de \
--DN cn=POS01,cn=Lab,ou=berlin,o=mycorp,c=de \
--modify --scWorkstation --scPosImageDn java \
--scPosImageVersion 1.1.3
Explanation
modified, for example, --scWorkstation.
If a value is given the attribute is modified, oth-
erwise the attribute entry is deleted.
7.2 Basic Actions
89

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux retail solution 8

Table of Contents