From: Ondřej Kuzník Date: Tue, 4 Jan 2022 13:57:09 +0000 (+0000) Subject: ITS#9768 Warn for unsupported configs X-Git-Tag: OPENLDAP_REL_ENG_2_5_10~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8839b8ab52f0a346b6d93ab231b0078ddf95de0;p=thirdparty%2Fopenldap.git ITS#9768 Warn for unsupported configs --- diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index 7c4a8f4e82..1e4e33879c 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -218,6 +218,16 @@ translucent_cf_gen( ConfigArgs *c ) } return 0; } + + /* cn=config values could be deleted later, we only want one name + * per value for valx to match. */ + if ( c->op != SLAP_CONFIG_ADD && strchr( c->argv[1], ',' ) ) { + Debug( LDAP_DEBUG_CONFIG|LDAP_DEBUG_NONE, "%s: %s: " + "Supplying multiple attribute names in a single value is " + "unsupported and will be disallowed in a future version\n", + c->log, c->argv[0] ); + } + a2 = str2anlist( *an, c->argv[1], "," ); if ( !a2 ) { snprintf( c->cr_msg, sizeof( c->cr_msg ), "%s unable to parse attribute %s",