s3:utils: Handle the domain before username and password
authorAndreas Schneider <asn@samba.org>
Fri, 15 Dec 2023 08:41:06 +0000 (09:41 +0100)
committerJule Anger <janger@samba.org>
Mon, 8 Jan 2024 12:50:18 +0000 (12:50 +0000)
commit98e62c70894f0094b25231b38691bdd62bc0d637
treed5f03bb15c1e1336fd4b9df221b851b8aaeba999
parent3a39e21d087bc796da7329920c2ce561aeeb796b
s3:utils: Handle the domain before username and password

The cli_credentials_get_password*() function will interactively ask the
user for a password if none has been supplied via another ways. To show
the correct domain and username in the prompt, we need handle domain
and user first.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15538

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 25021b836f74d3d247bce44c6c02a2d8b2cc39ea)
source3/utils/smbget.c