Commit 52bba704 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#9763 Make sure we keep cn=config values separate

parent e87569f9
...@@ -242,6 +242,17 @@ refint_cf_gen(ConfigArgs *c) ...@@ -242,6 +242,17 @@ refint_cf_gen(ConfigArgs *c)
switch ( c->type ) { switch ( c->type ) {
case REFINT_ATTRS: case REFINT_ATTRS:
rc = 0; rc = 0;
if ( c->op != SLAP_CONFIG_ADD && c->argc > 2 ) {
/* We wouldn't know how to delete these values later */
snprintf( c->cr_msg, sizeof( c->cr_msg ),
"Please insert multiple names as separate %s values",
c->argv[0] );
Debug( LDAP_DEBUG_CONFIG|LDAP_DEBUG_NONE,
"%s: %s\n", c->log, c->cr_msg );
rc = LDAP_INVALID_SYNTAX;
break;
}
for ( i=1; i < c->argc; ++i ) { for ( i=1; i < c->argc; ++i ) {
ad = NULL; ad = NULL;
if ( slap_str2ad ( c->argv[i], &ad, &text ) if ( slap_str2ad ( c->argv[i], &ad, &text )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment