From: Stefan Metzmacher Date: Fri, 8 Mar 2024 13:14:34 +0000 (+0100) Subject: python/samba/getopt: don't prompt for a password for --use-krb5-ccache=... X-Git-Tag: tdb-1.4.11~1007 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aff2932c420fd102c077063b8d1f66cdd8a777cb;p=thirdparty%2Fsamba.git python/samba/getopt: don't prompt for a password for --use-krb5-ccache=... BUG: https://bugzilla.samba.org/show_bug.cgi?id=15018 Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/python/samba/getopt.py b/python/samba/getopt.py index 0935ed00d40..2620138c3de 100644 --- a/python/samba/getopt.py +++ b/python/samba/getopt.py @@ -439,6 +439,7 @@ class CredentialsOptions(OptionGroup): self.creds.set_bind_dn(arg) def _set_krb5_ccache(self, option, opt_str, arg, parser): + self.ask_for_password = False self.creds.set_kerberos_state(MUST_USE_KERBEROS) self.creds.set_named_ccache(arg)