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

index 7c4a8f4e8247764e4e4a876d5b1febf1e456ea80..1e4e33879cecac379dbb0e3764743df18b5a058d 100644 (file)
@@ -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",