NIS/LDAP Gateway Administrator's Guide

3 Administering the NIS/LDAP Gateway
This chapter describes how to administer the NIS/LDAP Gateway to keep it running smoothly
and expand it as your computing environment expands. It describes the following topics:
“Starting and Stopping the NIS/LDAP Gateway”
“Enabling Automatic Restart”
Adding a Client System”
“Improving Performance”
“Troubleshooting”
Starting and Stopping the NIS/LDAP Gateway
How you start and stop the NIS/LDAP Gateway depends on whether automatic restarting is
enabled in the file /etc/rc.config.d/ypldapd. See “Enabling Automatic Restart” for more
information.
Start the NIS/LDAP Gateway, logged in as root, with a command like one of the following.
If automatic restart is enabled (YPLDAPD=1 in /etc/rc.config.d/ypldapd), use the following
command:
/sbin/init.d/ypldapd start
If automatic restart is disabled (YPLDAPD=0 in /etc/rc.config.d/ypldapd), use the following
command:
/opt/ldapux/ypldapd/sbin/ypldapd
Stop the NIS/LDAP Gateway, logged in as root, with a command like one of the following.
If automatic restart is enabled (YPLDAPD=1 in /etc/rc.config.d/ypldapd), use the following
command:
/sbin/init.d/ypldapd stop
If automatic restart is disabled (YPLDAPD=0 in /etc/rc.config.d/ypldapd), use one of the following
commands:
kill $(cat /var/run/ypldapd.pid) # default pid file locatio
kill pid
where pid is the process identifier of the ypldapd daemon. You can find this from the pidfile
parameter in /opt/ldapux/ypldapd/etc/ypldapd.conf, (The default pidfile is /var/run/ypldapd.pid.)
or by a command like the following:
ps -ef | grep ypldapd
See “The ypldapd Command” or the ypldapd(8) man page for more information.
Enabling Automatic Restart
If you want the NIS/LDAP Gateway to restart automatically after rebooting the system, edit the
file /etc/rc.config.d/ypldapd and set YPLDAPD=1. To disable automatic restarting, set
YPLDAPD=0.
See also “Starting and Stopping the NIS/LDAP Gateway”.
Starting and Stopping the NIS/LDAP Gateway 27