mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
searchbase is a required config parameter, log missing params.
This commit is contained in:
parent
e59fb036c9
commit
442a3f1fde
1 changed files with 8 additions and 3 deletions
|
|
@ -2757,10 +2757,11 @@ syncinfo_free( syncinfo_t *sie )
|
|||
|
||||
/* mandatory */
|
||||
#define GOT_ID 0x0001
|
||||
#define GOT_PROVIDER 0x0002
|
||||
#define GOT_PROVIDER 0x0002
|
||||
#define GOT_BASE 0x0004
|
||||
|
||||
/* check */
|
||||
#define GOT_ALL (GOT_ID|GOT_PROVIDER)
|
||||
#define GOT_ALL (GOT_ID|GOT_PROVIDER|GOT_BASE)
|
||||
|
||||
static struct {
|
||||
struct berval key;
|
||||
|
|
@ -2866,6 +2867,7 @@ parse_syncrepl_line(
|
|||
Debug( LDAP_DEBUG_ANY, "%s: %s.\n", c->log, c->msg, 0 );
|
||||
return -1;
|
||||
}
|
||||
gots |= GOT_BASE;
|
||||
} else if ( !strncasecmp( c->argv[ i ], LOGBASESTR "=",
|
||||
STRLENOF( LOGBASESTR "=" ) ) )
|
||||
{
|
||||
|
|
@ -3182,7 +3184,10 @@ parse_syncrepl_line(
|
|||
|
||||
if ( gots != GOT_ALL ) {
|
||||
snprintf( c->msg, sizeof( c->msg ),
|
||||
"Error: Malformed \"syncrepl\" line in slapd config file" );
|
||||
"Error: Malformed \"syncrepl\" line in slapd config file, missing%s%s%s",
|
||||
gots & GOT_ID ? "" : " "IDSTR,
|
||||
gots & GOT_PROVIDER ? "" : " "PROVIDERSTR,
|
||||
gots & GOT_BASE ? "" : " "SEARCHBASESTR );
|
||||
Debug( LDAP_DEBUG_ANY, "%s: %s.\n", c->log, c->msg, 0 );
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue