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

index 07928fbcef47f18c74432ffa2441e77c59a4545d..e8e14236ada303ef82a78cfe2f93e3c07995bd87 100644 (file)
@@ -242,6 +242,14 @@ refint_cf_gen(ConfigArgs *c)
                switch ( c->type ) {
                case REFINT_ATTRS:
                        rc = 0;
+                       if ( c->op != SLAP_CONFIG_ADD && c->argc > 2 ) {
+                               /* We wouldn't know how to delete these values later */
+                               Debug( LDAP_DEBUG_CONFIG|LDAP_DEBUG_NONE,
+                                       "Supplying multiple names in a single %s value is "
+                                       "unsupported and will be disallowed in a future version\n",
+                                       c->argv[0] );
+                       }
+
                        for ( i=1; i < c->argc; ++i ) {
                                ad = NULL;
                                if ( slap_str2ad ( c->argv[i], &ad, &text )