User Tasks
To Change Passwords
PAM and NSS. See Figure
Figure | Changing Passwords on Master Server with ldappasswd | ||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
| Master LDAP | Updates | Replica LDAP |
|
|
| ||||||||||
|
|
|
| Directory Server |
|
| Directory Server |
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
passwd(1) can |
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
| ||||||||||
modify master |
|
|
|
|
|
|
|
|
|
|
| ||||||||
LDAP server |
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
| Clients |
|
|
|
|
|
| Clients |
|
|
| |||||||
|
|
|
|
| |||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ldappasswd(1) can modify the master LDAP server
| See “The ldappasswd Command” on page 166 for details of this |
| command. |
Figure | 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
LDAP_MASTER="$(echo $LDAP_HOSTPORT cut
fi
Chapter 6 | 171 |