LDAP-UX Client Services B.05.00 Administrator's Guide

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.
7.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>]
7.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 will create new 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 will create new password in the userPassword attribute. If you specify
-PW, you must specify either the LDAP-UGCRED environment variable or the -PP option.
-Z
Requires an SSL connection to the LDAP directory server, even if the LDAP-UX
configuration profile does not specify the use of SSL. Using the -Z option requires that
you define either a valid LDAP directory server or CA certificate in the /etc/opt/
ldapux/cert8.db file. An error occurs if the SSL connection cannot be established.
-ZZ
Attempts a TLS connection to the directory server, even if the LDAP-UX configuration
profile does not specify the use of TLS. If a TLS connection cannot be established, a
non-TLS and non-SSL connection will be established. HP recommends that you do not
use -ZZ unless alternative methods are used to protect from network eavesdropping.
Use of -ZZ requires that you define either a valid LDAP directory server or CA certificate
in the /etc/opt/ldapux/cert8.db file.
7.3 LDAP user and group management tools 233