ITS#9763 Warn for unsupported configs

This commit is contained in:
Ondřej Kuzník 2022-01-04 14:05:51 +00:00 committed by Quanah Gibson-Mount
parent 2a218dd55f
commit 303d3d4028

View file

@ -242,6 +242,14 @@ 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 */
Debug( LDAP_DEBUG_CONFIG|LDAP_DEBUG_NONE,
"Supplying multiple names in a single %s value is "
"unsupported and will be disallowed in a future version\n",
c->argv[0] );
}
for ( i=1; i < c->argc; ++i ) {
ad = NULL;
if ( slap_str2ad ( c->argv[i], &ad, &text )