LDAP-UX Client Services B.04.10 Administrator's Guide (edition 7)
Figure 7-2 Changing Passwords on Master Server with ldappasswd
Replica LDAP
Directory Server
Master LDAP
Directory Server
Updates
LDAP-UX
Clients 1-50
passwd(1) can
modify master
LDAP server
ldappasswd(1) can
modify the master
LDAP server
LDAP-UX
Clients 51-100
See ldappasswd (page 137) 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.
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.
178 User Tasks