summaryrefslogtreecommitdiffstats
path: root/source4/libcli/raw
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-17 22:53:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:58 -0500
commitc06493912b9a8bb39a3d3459b9597daaa5d1c065 (patch)
tree6f4ee9be1926739fe2292022f0bf6cd727b0b15b /source4/libcli/raw
parentb494d95e6d94d2659fcbc89f5b26a33921bf1e86 (diff)
downloadsamba-c06493912b9a8bb39a3d3459b9597daaa5d1c065.tar.gz
samba-c06493912b9a8bb39a3d3459b9597daaa5d1c065.tar.xz
samba-c06493912b9a8bb39a3d3459b9597daaa5d1c065.zip
r4810: fixed anonymous connections with smbclient. Thanks to jbm for pointing this out.
(This used to be commit 7da0af98a0e0bc743d3c64be30b37cbc45e00737)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r--source4/libcli/raw/clitree.c8
1 files changed, 6 insertions, 2 deletions
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)) {