]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:net: avoid prompting for a password if --use-ccache is used
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Nov 2019 12:58:37 +0000 (13:58 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 28 May 2020 06:43:37 +0000 (06:43 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/utils/net_util.c

index 156e9ef99a58ce65289cc553b7e4777e70e08312..d1eefa3b4774f62bdbf948871297027c7d4c0c5c 100644 (file)
@@ -466,6 +466,10 @@ const char *net_prompt_pass(struct net_context *c, const char *user)
                return NULL;
        }
 
+       if (c->opt_ccache) {
+               return NULL;
+       }
+
        if (asprintf(&prompt, _("Enter %s's password:"), user) == -1) {
                return NULL;
        }