s3:utils: Handle the domain before username and password
commit25021b836f74d3d247bce44c6c02a2d8b2cc39ea
authorAndreas Schneider <asn@samba.org>
Fri, 15 Dec 2023 08:41:06 +0000 (15 09:41 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 4 Jan 2024 10:29:32 +0000 (4 10:29 +0000)
tree254330f4d62c6e6a53ee863babc2d1cd61e6dd9e
parent2cfbf43f706d5d29a5b1a5b13aac0661e42da0b1
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>
source3/utils/smbget.c