From c06493912b9a8bb39a3d3459b9597daaa5d1c065 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Jan 2005 22:53:00 +0000 Subject: r4810: fixed anonymous connections with smbclient. Thanks to jbm for pointing this out. (This used to be commit 7da0af98a0e0bc743d3c64be30b37cbc45e00737) --- source4/libcli/raw/clitree.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source4/libcli/raw/clitree.c') diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c index c6b3fa5ad9..06963d5bc4 100644 --- a/source4/libcli/raw/clitree.c +++ b/source4/libcli/raw/clitree.c @@ -173,9 +173,13 @@ NTSTATUS smbcli_tree_full_connection(TALLOC_CTX *parent_ctx, io.in.calling_name = my_name; io.in.service = service; io.in.service_type = service_type; - io.in.user = user; io.in.domain = domain; - io.in.password = password; + io.in.user = user; + if (user && user[0]) { + io.in.password = password; + } else { + io.in.password = NULL; + } status = smb_composite_connect(&io, parent_ctx); if (NT_STATUS_IS_OK(status)) { -- cgit