mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-31 14:50:34 +08:00
ITS#9763 Make sure we keep cn=config values separate
This commit is contained in:
parent
e87569f983
commit
52bba704e7
@ -242,6 +242,17 @@ refint_cf_gen(ConfigArgs *c)
|
||||
switch ( c->type ) {
|
||||
case REFINT_ATTRS:
|
||||
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 ) {
|
||||
ad = NULL;
|
||||
if ( slap_str2ad ( c->argv[i], &ad, &text )
|
||||
|
Loading…
x
Reference in New Issue
Block a user