From: Ondřej Kuzník Date: Tue, 4 Jan 2022 14:01:22 +0000 (+0000) Subject: ITS#9767 Warn for unsupported configs X-Git-Tag: OPENLDAP_REL_ENG_2_5_10~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=929af9c71c2e3a0bf8d51c3e8ea133af5ad3d5c6;p=thirdparty%2Fopenldap.git ITS#9767 Warn for unsupported configs --- diff --git a/servers/slapd/overlays/unique.c b/servers/slapd/overlays/unique.c index 7cbc3bf60f..952c1edf57 100644 --- a/servers/slapd/overlays/unique.c +++ b/servers/slapd/overlays/unique.c @@ -551,6 +551,13 @@ unique_cf_attrs( ConfigArgs *c ) rc = 0; break; case LDAP_MOD_ADD: + if ( c->argc > 2 ) { + Debug ( LDAP_DEBUG_CONFIG|LDAP_DEBUG_NONE, "unique config: " + "Supplying multiple names in a single %s value is unsupported " + "and will be disallowed in a future version\n", + c->argv[0] ); + } + /* FALLTHRU */ case SLAP_CONFIG_ADD: if ( domains ) { snprintf( c->cr_msg, sizeof( c->cr_msg ),