From b8dced5923655f9cf189c061a6cd5cea96d94e0d Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Fri, 5 Dec 2014 15:44:27 -0800 Subject: [PATCH] Ticket #47935 - Error: failed to open an LDAP connection to host 'example.org' port '389' as user 'cn=Directory Manager'. Error: unknown. Description: "slapd started." message is logged prior to calling PR_Listen on configured ports as well as creating a pid file. It confuses the install script that relies on the keyword to determine if the server is ready or not. This patch moves the "slapd started." logging code after calling PR_Listen and creating a pid file. --- ldap/servers/slapd/daemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ldap/servers/slapd/daemon.c b/ldap/servers/slapd/daemon.c index 9d24b37..0c11238 100644 --- a/ldap/servers/slapd/daemon.c +++ b/ldap/servers/slapd/daemon.c @@ -1012,7 +1012,6 @@ void slapd_daemon( daemon_ports_t *ports ) exit( 1 ); } - unfurl_banners(the_connection_table,ports,n_tcps,s_tcps,i_unix); init_op_threads (); detect_timeout_support(); @@ -1146,6 +1145,9 @@ void slapd_daemon( daemon_ports_t *ports ) /* Now we write the pid file, indicating that the server is finally and listening for connections */ write_pid_file(); + /* The server is ready and listening for connections. Logging "slapd started" message. */ + unfurl_banners(the_connection_table,ports,n_tcps,s_tcps,i_unix); + /* The meat of the operation is in a loop on a call to select */ while(!g_get_shutdown()) { -- 1.9.3