Hi, I am new to openldap. I've been searching the internet and this list, but have not found a match for my issue (though there are several failures of slapd to run reported, they all appear to differ from my case in that there were some side infos provided by slapd). I've built slapd (fairly plain: --enable-bdb=no --enable-hdb=no --with-tls) , installed it and tried to start it following the instructions in the admin guide ( chapter 2. A Quick-Start Guide, for that matter).
modified /usr/local/etc/openldap/slapd.ldif ran [root@...]# /usr/local/sbin/slapadd -n 0 -F /usr/local/etc/openldap/slapd.d -l /usr/local/etc/openldap/slapd.ldif _#################### 100.00% eta none elapsed none fast! Closing DB... [root@...]# chown -R slapd.slapd /usr/local/etc/openldap/ [root@...]# chown -R slapd.slapd /usr/local/var/openldap-data
Then, attempting to start slapd:
# /usr/local/libexec/slapd -u slapd -g slapd -F /usr/local/etc/openldap/slapd.d -VVVVV -d65535 ldap_url_parse_ext(ldap://localhost/) ldap_init: trying /usr/local/etc/openldap/ldap.conf ldap_init: using /usr/local/etc/openldap/ldap.conf ldap_init: HOME env is /root ldap_init: trying /root/ldaprc ldap_init: trying /root/.ldaprc ldap_init: trying ldaprc ldap_init: LDAPCONF env is NULL ldap_init: LDAPRC env is NULL @(#) $OpenLDAP: slapd 2.4.49 (May 4 2020 11:30:05) $ root@xcat2.meteo:/usr/local/src/openldap-2.4.49/servers/slapd
Included static overlays: syncprov Included static backends: config ldif monitor mdb relay 5eb2c445 slapd stopped. 5eb2c445 connections_destroy: nothing to destroy.
I've tried to strace the slapd start, but that gave me no clue ... What can I further do to get useful hints to the cause o slapd's failure to run? Why, albeit I submit -F /usr/local/etc/openldap/slapd.d, does slapd / ldap_init report "using /usr/local/etc/openldap/ldap.conf"?
Mit freundlichen Grüßen / Kind regards
Dr. Uwe Falke IT Specialist Global Technology Services / Project Services Delivery / High Performance Computing +49 175 575 2877 Mobile Rathausstr. 7, 09111 Chemnitz, Germany uwefalke@de.ibm.com
IBM Services
IBM Deutschland Business & Technology Services GmbH Geschäftsführung: Dr. Thomas Wolter, Sven Schooss Sitz der Gesellschaft: Ehningen Registergericht: Amtsgericht Stuttgart, HRB 17122
--On Wednesday, May 6, 2020 5:23 PM +0200 Uwe Falke UWEFALKE@de.ibm.com wrote:
# /usr/local/libexec/slapd -u slapd -g slapd -F /usr/local/etc/openldap/slapd.d -VVVVV -d65535
Your options here are nonsense. As noted in the man page:
-V -> slapd prints version and starts -VV -> sapd prints version and EXITS
Any more "v" > 2 are ignored.
You're literally telling slapd to quit.
Additionally, the ldap.conf file is read for CLIENT options (in addition to the slapd configuration for SERVER options). Some of those CLIENT options are used internally in slapd and various slapd backends.
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
In case slapd did not start up, I always succeeded to find the issue with:
slapd ${YADAYADA} -d -1
`-d -1` enables all log levels, it's highly verbose.
Cheers, -- Bastian Tweddell Juelich Supercomputing Centre phone: +49 (2461) 61-6586 HPC in Neuroscience, HPS
------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Volker Rieke Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------
openldap-technical@openldap.org