LDAP-UX Client Services B.04.00 Administrator's Guide
User Tasks
To Change Passwords
Chapter 6 171
PAM and NSS. See Figure 6-2, Changing Passwords on Master Server
with ldappasswd, below. See also Figure 6-3 on page 171 for a sample
passwd wrapper command.
Figure 6-2 Changing Passwords on Master Server with ldappasswd
See “The ldappasswd Command” on page 166 for details of this
command.
Figure 6-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
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