s3:utils: Fix the auth function to print correct values to the user
authorAndreas Schneider <asn@samba.org>
Fri, 15 Dec 2023 07:23:25 +0000 (08:23 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 4 Jan 2024 11:26:52 +0000 (11:26 +0000)
commit1134c4f3a63c9618c3fb79abefb40a798c7c1701
tree21737e1c28063e6ee8abd82aa5d109cad1d50961
parent25021b836f74d3d247bce44c6c02a2d8b2cc39ea
s3:utils: Fix the auth function to print correct values to the user

In order to show correct values in the password prompt displayed by
cli_credentials_get_password*(). We need to set the domain and username
in the credentials system.

The credentials supplied via the SMB URL have a higher priority than the
command line options.

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>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jan  4 11:26:52 UTC 2024 on atb-devel-224
source3/utils/smbget.c