User Tasks

To Change Passwords

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Master LDAP

Updates

Replica LDAP

 

 

 

 

 

 

 

Directory Server

 

 

Directory Server

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

passwd(1) can

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

modify master

 

 

 

 

 

 

 

 

 

 

 

LDAP server

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LDAP-UX

 

 

 

 

 

LDAP-UX

 

 

 

 

 

Clients 1-50

 

 

 

 

 

 

Clients 51-100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ldappasswd(1) can modify the master LDAP server

 

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

Chapter 6

171