* Thu Oct 23 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-8 - add another section to the ABI note for the TLS libdb so that it's marked as not needing an executable stack (from Arjan Van de Ven) * Thu Oct 16 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-7 - force bundled libdb to not use O_DIRECT by making it forget that we have it * Wed Oct 15 2003 Nalin Dahyabhai <nalin@redhat.com> - build bundled libdb for slapd dynamically to make the package smaller, among other things - on tls-capable arches, build libdb both with and without shared posix mutexes, otherwise just without - disable posix mutexes unconditionally for db 4.0, which shouldn't need them for the migration cases where it's used - update to MigrationTools 45 * Fri Sep 12 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-6 - drop rfc822-MailMember.schema, merged into upstream misc.schema at some point * Wed Aug 27 2003 Nalin Dahyabhai <nalin@redhat.com> - actually require newer libtool, as was intended back in 2.1.22-0, noted as missed by Jim Richardson * Fri Jul 25 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-5 - enable rlookups, they don't cost anything unless also enabled in slapd's configuration file * Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-4 - rebuild * Thu Jul 17 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-3 - rebuild * Wed Jul 16 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-2 - rebuild * Tue Jul 15 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-1 - build * Mon Jul 14 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-0 - 2.1.22 now badged stable - be more aggressive in what we index by default - use/require libtool 1.5 * Mon Jun 30 2003 Nalin Dahyabhai <nalin@redhat.com> - update to 2.1.22 * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> - rebuilt * Tue Jun 03 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.21-1 - update to 2.1.21 - enable ldap, meta, monitor, null, rewrite in slapd * Mon May 19 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.20-1 - update to 2.1.20 * Thu May 08 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.19-1 - update to 2.1.19 * Mon May 05 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.17-1 - switch to db with crypto * Fri May 02 2003 Nalin Dahyabhai <nalin@redhat.com> - install the db utils for the bundled libdb as %{_sbindir}/slapd_db_* - install slapcat/slapadd from 2.0.x for migration purposes * Wed Apr 30 2003 Nalin Dahyabhai <nalin@redhat.com> - update to 2.1.17 - disable the shell backend, not expected to work well with threads - drop the kerberosSecurityObject schema, the krbName attribute it contains is only used if slapd is built with v2 kbind support
120 lines
2.6 KiB
Bash
120 lines
2.6 KiB
Bash
#!/bin/bash
|
|
#
|
|
# ldap This shell script takes care of starting and stopping
|
|
# ldap servers (slapd and slurpd).
|
|
#
|
|
# chkconfig: - 39 61
|
|
# description: LDAP stands for Lightweight Directory Access Protocol, used \
|
|
# for implementing the industry standard directory services.
|
|
# processname: slapd
|
|
# config: /etc/openldap/slapd.conf
|
|
# pidfile: /var/run/slapd.pid
|
|
|
|
# Source function library.
|
|
. /etc/init.d/functions
|
|
|
|
# Source networking configuration and check that networking is up.
|
|
if [ -r /etc/sysconfig/network ] ; then
|
|
. /etc/sysconfig/network
|
|
[ ${NETWORKING} = "no" ] && exit 0
|
|
fi
|
|
|
|
# Source an auxiliary options file if we have one, and pick up OPTIONS,
|
|
# SLAPD_OPTIONS, and SLURPD_OPTIONS.
|
|
if [ -r /etc/sysconfig/ldap ] ; then
|
|
. /etc/sysconfig/ldap
|
|
fi
|
|
|
|
slapd=/usr/sbin/slapd
|
|
slurpd=/usr/sbin/slurpd
|
|
[ -x ${slapd} ] || exit 0
|
|
[ -x ${slurpd} ] || exit 0
|
|
|
|
RETVAL=0
|
|
|
|
function start() {
|
|
# Start daemons.
|
|
prog=`basename ${slapd}`
|
|
echo -n $"Starting $prog: "
|
|
if grep -q ^TLS /etc/openldap/slapd.conf ; then
|
|
daemon ${slapd} -u ldap -h '"ldap:/// ldaps:///"' -l daemon $OPTIONS $SLAPD_OPTIONS
|
|
RETVAL=$?
|
|
else
|
|
daemon ${slapd} -u ldap -h "ldap:///" -l daemon $OPTIONS $SLAPD_OPTIONS
|
|
RETVAL=$?
|
|
fi
|
|
echo
|
|
if [ $RETVAL -eq 0 ]; then
|
|
if grep -q "^replogfile" /etc/openldap/slapd.conf; then
|
|
prog=`basename ${slurpd}`
|
|
echo -n $"Starting $prog: "
|
|
daemon ${slurpd} $OPTIONS $SLURPD_OPTIONS
|
|
RETVAL=$?
|
|
echo
|
|
fi
|
|
fi
|
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/ldap
|
|
return $RETVAL
|
|
}
|
|
|
|
function stop() {
|
|
# Stop daemons.
|
|
prog=`basename ${slapd}`
|
|
echo -n $"Stopping $prog: "
|
|
killproc ${slapd}
|
|
RETVAL=$?
|
|
echo
|
|
if [ $RETVAL -eq 0 ]; then
|
|
if grep -q "^replogfile" /etc/openldap/slapd.conf; then
|
|
prog=`basename ${slurpd}`
|
|
echo -n $"Stopping $prog: "
|
|
killproc ${slurpd}
|
|
RETVAL=$?
|
|
echo
|
|
fi
|
|
fi
|
|
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ldap /var/run/slapd.args
|
|
return $RETVAL
|
|
}
|
|
|
|
# See how we were called.
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
status)
|
|
status ${slapd}
|
|
if grep -q "^replogfile" /etc/openldap/slapd.conf ; then
|
|
status ${slurpd}
|
|
fi
|
|
;;
|
|
restart)
|
|
stop
|
|
start
|
|
;;
|
|
reload)
|
|
killproc ${slapd} -HUP
|
|
RETVAL=$?
|
|
if [ $RETVAL -eq 0 ]; then
|
|
if grep -q "^replogfile" /etc/openldap/slapd.conf; then
|
|
killproc ${slurpd} -HUP
|
|
RETVAL=$?
|
|
fi
|
|
fi
|
|
;;
|
|
condrestart)
|
|
if [ -f /var/lock/subsys/ldap ] ; then
|
|
stop
|
|
start
|
|
fi
|
|
;;
|
|
*)
|
|
echo $"Usage: $0 {start|stop|restart|status|condrestart}"
|
|
RETVAL=1
|
|
esac
|
|
|
|
exit $RETVAL
|