openldap 2.3.24-r1 won't start via the init script. Here's an example: r52 ~ # /etc/init.d/slapd start * Starting ldap-server ... [ ok ] r52 ~ # ps aux |grep slap root 9345 0.0 0.0 1480 484 pts/21 S+ 15:23 0:00 grep slap So even though the init script says it started there is no process for slapd When I manually run what the init script does (sans the start-stop-daemon it works).... # /usr/lib/openldap/slapd -- -u ldap -g ldap "" r52 ~ # ps aux |grep slap root 7420 0.3 0.1 10844 2804 ? Ss 15:16 0:00 /usr/lib/openldap/slapd -- -u ldap -g ldap root 7421 0.0 0.1 10844 2804 ? S 15:16 0:00 /usr/lib/openldap/slapd -- -u ldap -g ldap root 7422 0.0 0.1 10844 2804 ? S 15:16 0:00 /usr/lib/openldap/slapd -- -u ldap -g ldap root 7423 0.0 0.1 10844 2804 ? S 15:16 0:00 /usr/lib/openldap/slapd -- -u ldap -g ldap root 7437 0.0 0.0 1480 484 pts/21 S+ 15:16 0:00 grep slap r52 ~ # emerge info *** Deprecated use of action 'info', use '--info' instead Portage 2.1.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-suspend2-r9 i686) ================================================================= System uname: 2.6.16-suspend2-r9 i686 Intel(R) Pentium(R) M processor 1.86GHz Gentoo Base System version 1.6.15 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-Os -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X a52 aac acpi alsa apm asf avi berkdb bitmap-fonts browserplugin cdr cli crypt cups dlloader dri dts dv dvd dvdread eds emacs emboss encode ffmpeg foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal i810 i8x0 imlib ipod ipv6 isdnlog jack java jpeg kde kive ldap libg++ libwww mad matroska mikmod mmx motif mozilla mp3 mpeg musicbrainz ncurses nls nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline real reflection scanner sdl session spell spl sse sse2 ssl tcltk tcpd theora truetype truetype-fonts type1-fonts v4l v4l2 vorbis win32codecs x11vnc xine xml xml2 xorg xosd xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_i810 video_cards_i830 video_cards_i915 video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
*** Bug 141119 has been marked as a duplicate of this bug. ***
Look at your syslog to see why it didn't start. Post that info here.
Check the permissions of BDB files in /var/lib/openldap-data/ These should be owned by ldap.ldap. When using slapadd files will be created under user root. In my case there were no errors logged in syslog.
Also post the results for "slaptest -d config" here.