]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:testparm: make it clear that 'client use krb5 netlogon' is experimental
authorStefan Metzmacher <metze@samba.org>
Sat, 22 Feb 2025 14:58:51 +0000 (15:58 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 24 Feb 2025 08:43:55 +0000 (08:43 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15815

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Feb 24 08:43:55 UTC 2025 on atb-devel-224

source3/utils/testparm.c

index 2bc41244a27854f2aa5696d4ad3ccd16a0815fb5..306924ac7c8e42e00a2f8540c0ca42010e2dee5d 100644 (file)
@@ -359,6 +359,7 @@ static int do_global_checks(void)
        const char **lp_ptr = NULL;
        const struct loadparm_substitution *lp_sub =
                loadparm_s3_global_substitution();
+       int ival;
 
        fprintf(stderr, "\n");
 
@@ -784,6 +785,18 @@ static int do_global_checks(void)
                        "options\n\n");
        }
 
+       ival = lp__client_use_krb5_netlogon();
+       if (ival > 0) {
+               fprintf(stderr,
+                       "ERROR: You have configured "
+                       "'client use krb5 netlogon = %s'.\n"
+                       "This is experimental in Samba %s "
+                       "and should not be used in production!\n\n",
+                       ival == Auto ? "auto" : "yes",
+                       samba_version_string());
+               ret = 1;
+       }
+
        if (lp_kerberos_encryption_types() == KERBEROS_ETYPES_LEGACY) {
                fprintf(stderr,
                        "WARNING: You have configured "