LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS

in the RDN portion of the entry’s distinguished name. Changing the attribute and value
that is used in the RDN requires changing the RDN.
For example, an entry in the directory server is named “cn=Robert
Smith,ou=IT,dc=example,dc=com. If the cn attribute is changed to “cn=Bob
Smith, then the entry DN also needs to change to “cn=Bob
Smith,ou=IT,dc=example,dc=com
Modification of an RDN is generally discouraged because the DN is often used as a
unique way to identify the entry in the directory server. Often DN is used to define
membership in a group. To prevent accidental changes to the DN, you must specify the
-N option to allow changes to the RDN. When the DN of an entry changes, the group
membership information for this entry might be inconsistent. Most directory servers have
the inherent ability to update all entries that refer to the updated DN of a changed entry.
Therefore, ldapugmod does not attempt to perform modifications to other entries in the
directory server that refer to this entry by its DN.
NOTE: The ldapugmod tool does not allow you to rename multi-valued RDNs. For
example, an RDN of cn=test1+cn=test2 is not supported
-F Forces ldapugmod to modify the user or group entry in an LDAP directory server even if
particular error conditions occur. Those error conditions that can be overwritten are as
follows:
The changed user name or group name already exists in the directory server.
The changed user ID or group ID number already exists in the directory server.
An attempt is made to modify the group of a user with a group ID that cannot be
found in any name service repository. In this case, the group ID number must be
specified.
An attempt is made to force ldapugmod to add a member to a group when that
member is not defined in the LDAP directory server. In this case, membership is always
defined using the memberUid attribute, regardless of attribute mapping defined for
group membership.
-S Displays the Distinguish Name (DN) of the deleted or updated entry when the operation
successfully completes.
9.3.6.3 Arguments
The following describes command arguments:
-t <type> Specifies whether the command-line arguments are applicable to modify the
user or group entry. The valid types of this argument are passwd and group.
If you do not specify this argument, ldapugmod defaults to passwd. The
passwd type represents LDAP user entries that contain POSIX account-related
information. The group type represents LDAP group entries that contain
POSIX group-related information.
-h <hostname> Specifies the host name and optional port number (hostname:port) of the
LDAP directory server. This option overrides the server list specified by the
LDAP-UX configuration profile. This field supports specification of IPv4 and
IPv6 addresses. If you specify a port for an IPv6 address, you must specify
the IPv6 address in square-bracketed form. If you do not specify the optional
port, the port number defaults to 389 or 636 for SSL connections (-Z ).
-p <port> Specifies the port number of the LDAP directory server to contact. The
ldapugadd tool ignores this option if you specify the port number in the
<hostname> parameter as part of the -h option.
9.3 LDAP user and group management tools 315