mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
s3:libsmb: make use of cli_session_setup_anon()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
committed by
Andreas Schneider
parent
dafab66481
commit
f70d1cfcc2
@ -203,8 +203,8 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx,
|
||||
* try again with a null username. */
|
||||
if (password[0] || !username[0] ||
|
||||
get_cmdline_auth_info_use_kerberos(auth_info) ||
|
||||
!NT_STATUS_IS_OK(status = cli_session_setup(c, "", "",
|
||||
lp_workgroup()))) {
|
||||
!NT_STATUS_IS_OK(status = cli_session_setup_anon(c)))
|
||||
{
|
||||
d_printf("session setup failed: %s\n",
|
||||
nt_errstr(status));
|
||||
if (NT_STATUS_EQUAL(status,
|
||||
|
Reference in New Issue
Block a user