]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9767 Warn for unsupported configs
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 4 Jan 2022 14:01:22 +0000 (14:01 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 12 Jan 2022 21:58:54 +0000 (21:58 +0000)
servers/slapd/overlays/unique.c

index 7cbc3bf60f4d8ccf080cdf56f8be716113176144..952c1edf57aecd9d920cffadb35cf7ee248751ed 100644 (file)
@@ -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 ),