HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_323
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 323     fi fi echo         if [ $RETVAL -eq 0 ]; then     rm -f /var/lock/subsys/ldap     rm -f /var/run/slapd.args fi         ;;     status) status slapd RETVAL=$? if [ $RETVAL -eq 0 ]; then     if grep -q "^replogfile" /etc/openldap/slapd.conf; then status slurpd RETVAL=$?     fi fi ;;     restart) $0 stop $0 start RETVAL=$? ;;     reload)      killproc -HUP slapd RETVAL=$? if [ $RETVAL -eq 0 ]; then     if grep -q "^replogfile" /etc/openldap/slapd.conf; then killproc -HUP slurpd RETVAL=$?     fi fi ;;     *) echo "Usage: $0 start|stop|restart|status}" exit 1 esac exit $RETVAL Now, make this script executable and change its default permission: [root@deep /]# chmod 700 /etc/rc.d/init.d/ldap Create the symbolic rc.d links for OpenLDAP with the command: [root@deep /]# chkconfig --add ldap OpenLDAP script will not start automatically the slapd daemon when you reboot the server. You can change it default by executing the following command: [root@deep /]# chkconfig --level 345 ldap on Start your OpenLDAP Server manually with the following command: [root@deep /]# /etc/rc.d/init.d/ldap start Starting ldap:                                             [  OK  ] Securing OpenLDAP