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

by the templates that are not part of the standard POSIX data model. For more information, see
Section 9.3.5.6 (page 306) .
9.3.5.1 Syntax translation
LDAP-UX supports syntax translation for the memberUid and gecos attributes. This translation
enables storage of this information in a format more interoperable with other directory-enabled
applications. The LDAP user and group tools enable creation and modification of these attributes
in the LDAP-native syntaxes, even when specified using POSIX syntaxes.
For example, if the LDAP-UX configuration profile indicates the gecos attribute has been mapped
to cn, l and telephoneNumber attributes, then when you specify the GECOS values separated
by a comma for each mapped attribute in the ldapugadd command, the comma-separated list
is parsed and each comma-separated component is placed in the cn, l and telephoneNumber
attributes. If the memberUid attribute has been mapped to the member attribute (where the member
ID syntax is defined using a distinguished name [DN]), then ldapugadd translates the memberUid
account name to a DN before placing the member attribute. If the memberUid attribute has been
mapped to more than one attribute type, ldapugadd uses the first attribute defined by the mapping.
9.3.5.2 Synopsis
ldapugadd [-t passwd] [options] <uid_name>
[-h <hostname>] [-p <port>] [-b <base>] [-u <uid_number>]
[-g <group/gid>] [-f <full_name>] [-x <domain>] [-G <group/gid>[,...]]
[-s <login_shell>] [-d <home_directory>] [-I <gecos>][-c <comment>]
[-m [-k <skel_dir> [-T <template_file> [[<attr>=<value>][...]]
ldapugadd -t group [options] [-h <hostname>] [-p <port>]
[-b <base>] [-g <gidNumber>], [-x <domain>] [-M <member>[,...]]
[-c <comment>] [-T <template_file>] <group_name>
[[<attr>=<value>][...]]
ldapugadd -D [-g <default_gid>] [-d <default_home>] [-s <defult_shell>]
[-u <min_uid>:<max_uid>] [-g <min_gid>:<max_gid>]
9.3.5.3 Options
The ldapugadd tool supports the following command options:
-P Prompts for the administrator bind identity (typically LDAP DN or Kerberos principal) and
bind password. If you do not specify the -P option, ldapugadd discovers the bind identity
and password from the environment variables LDAP_BINDDN and LDAP_BINDCRED.
Values set with a prompt (-P) option override values specified in the environment variable.
If the LDAP_BINDDN and LDAP_BINDCRED environment variables have not been specified,
ldapugadd uses the bind configuration specified in the LDAP-UX configuration profile. If
the LDAP-UX configuration profile has specified the “proxy” bind, ldapugadd reads the
bind credential from either the /etc/opt/ldapux/acred or /etc/opt/ldapux/
pcred file. The /etc/opt/ldapux/acred file is only used by users that have sufficient
administrative privilege to read this file.
-PP Prompts for the password of the user or group being created. If attribute mapping for the
userPassword attribute in the LDAP-UX configuration profile has not been defined or
set to *NULL*, ldapugadd creates anew password in the userPassword attribute. To
ensure accuracy, the user is prompted twice for the password. The ldapugadd tool relies
on the LDAP directory server for setting of password policy, such as
user-must-change-password-at-first-login.
-PW Sets the user or group password attribute. If attribute mapping for the userPassword
attribute in the LDAP-UX configuration profile has not been defined or set to *NULL*,
ldapugadd creates a new password in the userPassword attribute. If you specify -PW,
you must specify either the LDAP-UGCRED environment variable or the -PP option.
9.3 LDAP user and group management tools 297