When I have the slapd( aka. OpenLDAP Sever) running and I add this to the mongod.conf file as follows
When the mongod daemon start ups it is able to connect to the ldap server retrieve the proper base dn, but when it closes that connection and spawns a fork to start up another connection to the ldap server the connection is accepted then immediately lost. This is the mongod.log file.
-- Unit mongod.service has begun starting up.
Sep 13 13:17:14 localhost.localdomain slapd[2755]: conn=1018 op=2 SRCH base="dc=rit,dc=local" scope=2 deref=0
Sep 13 13:17:14 localhost.localdomain slapd[2755]: conn=1018 op=2 SRCH attr=objectClass uid userPassword uidNu
Sep 13 13:17:14 localhost.localdomain slapd[2755]: <= bdb_equality_candidates: (uid) not indexed
Sep 13 13:17:14 localhost.localdomain slapd[2755]: conn=1018 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
Sep 13 13:17:14 localhost.localdomain mongod[5572]: 2018-09-13T13:17:14.233-0400 I CONTROL [main] Automatical
Sep 13 13:17:14 localhost.localdomain mongod[5572]: about to fork child process, waiting until server is ready
Sep 13 13:17:14 localhost.localdomain mongod[5572]: forked process: 5575
Sep 13 13:17:14 localhost.localdomain slapd[2755]: conn=1019 fd=22 ACCEPT from IP=[::1]:60582 (IP=[::]:389)
Sep 13 13:17:14 localhost.localdomain slapd[2755]: conn=1019 fd=22 closed (connection lost)
Sep 13 13:17:14 localhost.localdomain mongod[5572]: ERROR: child process failed, exited with error number 1
Sep 13 13:17:14 localhost.localdomain mongod[5572]: To see additional information in this output, start withou
Sep 13 13:17:14 localhost.localdomain systemd[1]: mongod.service: control process exited, code=exited status=1
Sep 13 13:17:14 localhost.localdomain systemd[1]: Failed to start MongoDB Database Server.
-- Subject: Unit mongod.service has failed
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/listinfo/systemd-devel--
-- Unit mongod.service has failed.
--
-- The result is failed.
Sep 13 13:17:14 localhost.localdomain systemd[1]: Unit mongod.service entered failed state.
Sep 13 13:17:14 localhost.localdomain systemd[1]: mongod.service failed.
Sep 13 13:17:14 localhost.localdomain polkitd[778]: Unregistered Authentication Agent for unix-process:5560:14
It appears the fork child process fails because of the slapd connection lost, which I am not sure why that would be occurring since only moments before there was an established connection.