From: Kurt Zeilenga Date: Sun, 15 Jun 2003 05:57:14 +0000 (+0000) Subject: Initialize schema before starting server. X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~879 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=02bfbae186a5b3ed1c0df56675f0f82821776fc0;p=openldap Initialize schema before starting server. --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index ea41382b9a..61dc82e121 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -373,12 +373,6 @@ int main( int argc, char **argv ) } #endif - if ( slap_init( serverMode, serverName ) != 0 ) { - rc = 1; - SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 18 ); - goto destroy; - } - if ( slap_schema_init( ) != 0 ) { #ifdef NEW_LOGGING LDAP_LOG( OPERATION, CRIT, "main: schema initialization error\n", 0, 0, 0 ); @@ -391,6 +385,12 @@ int main( int argc, char **argv ) goto destroy; } + if ( slap_init( serverMode, serverName ) != 0 ) { + rc = 1; + SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 18 ); + goto destroy; + } + if ( slap_controls_init( ) != 0 ) { #ifdef NEW_LOGGING LDAP_LOG( OPERATION, CRIT, "main: controls initialization error\n", 0, 0, 0 );