Skip to content
Snippets Groups Projects
Commit 2b77fb42 authored by Jong Hyuk Choi's avatar Jong Hyuk Choi
Browse files

backend operations check

parent 4bb94862
No related branches found
No related tags found
No related merge requests found
......@@ -409,6 +409,21 @@ int backend_startup(Backend *be)
if ( !LDAP_STAILQ_EMPTY( &backendDB[i].be_syncinfo )) {
syncinfo_t *si;
if ( !( backendDB[i].be_search && backendDB[i].be_add &&
backendDB[i].be_modify && backendDB[i].be_delete )) {
#ifdef NEW_LOGGING
LDAP_LOG( BACKEND, CRIT,
"backend_startup: database(%d) does not support "
"operations required for syncrepl", i, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"backend_startup: database(%d) does not support "
"operations required for syncrepl", i, 0, 0 );
#endif
continue;
}
LDAP_STAILQ_FOREACH( si, &backendDB[i].be_syncinfo, si_next ) {
si->si_be = &backendDB[i];
init_syncrepl( si );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment