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) $
        [email protected]:/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
[email protected]

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

Reply via email to