LDAP-UX Client Services B.04.15 Administrator's Guide
Figure 7-2 Changing Passwords on Master Server with ldappasswd
See ldappasswd (page 198) for details of this command.
Figure 7-3 Sample passwd Command Wrapper
#!/usr/bin/ksh # # You
can put a default master LDAP server host name # here. Otherwise
the local host is the default. # #LDAP_MASTER="masterHostName" if
[[ "$1" != "" ]] then LDAP_MASTER="$1" fi if [[ "$LDAP_MASTER"
= "" ]] then eval "$(sed -e "1,/Service: NSS/d" /etc/opt/ldapux/ldapux_client.conf
| \ grep "^LDAP_HOSTPORT")" LDAP_MASTER="$(echo $LDAP_HOSTPORT
| cut -d" " -f 1)" fi LDAP_BASEDN="$(grep -i "^defaultsearchbase:"
\ /etc/opt/ldapux/ldapux_profile.ldif | cut -d" " -f 2-99)" /opt/ldapux/bin/ldappasswd
-b "$LDAP_BASEDN" -h $LDAP_MASTER
Alternatively, your users can use a simple LDAP gateway through a web browser connected to
the directory to change their password. The advantage to this method is that your users can also
change their other personal information as described below.
7.2 To Change Personal Information
On HP-UX, users change their personal information (sometimes called "gecos" information) such
as full name, phone number, and location with the chfn(1) command which changes /etc/passwd.
HP-UX users change their login shell with the chsh(1) command, which also changes /etc/passwd.
See the LDAP-UX Integration B.04.10 Release Notes for whether or not these commands change
entries in the directory with this release.
If you have Netscape/Red Hat Directory Server for HP-UX, you can use the Directory Console
or the ldapmodify command to change personal information. Or you can use a simple LDAP
gateway through a web browser to display and change this information.
238 User Tasks