LDAP-UX Client Services B.05.00 with Microsoft Windows Active Directory Server Administrator's Guide (obsolete beyond B.05.00)
to cn, l and telephoneNumber in the LDAP-UX configuration profile. ldapugadd creates the
password for new user, tsheu, using the password specified in the LDAP_UGCRED environment
variable. After creating the user entry, ldapugadd attempts to add this user as a member of the
group number 350.
./ldapugadd -t passwd -PW -g 350 -I "Tom Sheu,Building-1A,555-555-5555" tsheu
Use the following command to display the new user entry, tsheu, with mapped attribute
information:
./ldapuglist -t passwd -m -n tsheu
If ldapuglist is used to access a Windows 2003 R2 or 2008 Active Directory Server with the
RFC 2307 schema installed, the output of the user entry is as follows:
dn: cn=Tom Sheu,cn=Users,dc=org,dc=example,dc=com
cn[cn]: Tom Sheu
uid[uid]: tsheu
uidNumber[uidnumber]: 2200
gidNumber[gidnumber]: 350
homeDirectory[unixHomedirectory]: /home/tsheu
loginShell[loginshell]: /usr/bin/sh
gecos[cn]: Tom Sheu
gecos[l]: Building-1A
gecos[telephoneNumber]: 555-555-5555
Command Arguments applicable to -t passwd
The following are the options and arguments used in the previous examples of the ldapugadd
-t passwd commands:
-t <type> Specifies the type of entry the ldapugadd tool operates. <type>
can be passwd or group. The passwd type represents LDAP user
entries which contain POSIX account-related information. The group
type represents LDAP group entries which contain POSIX
group-related information.
-f <full_name> This optional argument only applies to the passwd service. This
option specifies the user's full name.
-g <gid/gid_nubmer> Specifies the user's primary login group name or id number. After
creating the user entry, ldapugadd attempts to add the user as a
member of the specified group.
-I <gecos> Specifies the GECOS fields for the user. Typically the GECOS
argument contains the following four fields which represent (in
order):
• The user's full name
• The user's work location
• The user's work telephone number
• The user's home telephone number (often omitted)
Each field in the <gecos> argument must be separated by a
comma.
-PW Sets the user or group password attribute. If you specify -PW, you
must specify either the LDAP-UGCRED environment variable or the
-PP option.
<uid_name> Required argument. Specifies the POSIX style login name for the
new user entry. This argument must follow all command-line options
and must precede the <attr>=<value> parameters (if provided).
120 Administering LDAP-UX Client Services