mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Initialize schema before starting server.
This commit is contained in:
parent
46122fa688
commit
02bfbae186
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user