From 2a218dd55ff200e274fee2dce65ab7d809b5f646 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Tue, 4 Jan 2022 14:01:22 +0000 Subject: [PATCH] ITS#9767 Warn for unsupported configs --- servers/slapd/overlays/unique.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/servers/slapd/overlays/unique.c b/servers/slapd/overlays/unique.c index 9e96fb5b98..ad1c825900 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 ), -- 2.47.3