python/samba/getopt: don't prompt for a password for --use-krb5-ccache=...
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Mar 2024 13:14:34 +0000 (14:14 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Apr 2024 14:17:32 +0000 (14:17 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15018

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/getopt.py

index 0935ed00d40b581963129b9011dc68197bfc5914..2620138c3de0e7ed6e7565a56225fb8731799690 100644 (file)
@@ -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)