svn commit: samba r4810 - in branches/SAMBA_4_0/source/libcli/raw: .

tridge at samba.org tridge at samba.org
Mon Jan 17 22:53:00 GMT 2005


Author: tridge
Date: 2005-01-17 22:53:00 +0000 (Mon, 17 Jan 2005)
New Revision: 4810

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4810

Log:
fixed anonymous connections with smbclient. Thanks to jbm for pointing this out.



Modified:
   branches/SAMBA_4_0/source/libcli/raw/clitree.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/clitree.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/raw/clitree.c	2005-01-17 20:27:29 UTC (rev 4809)
+++ branches/SAMBA_4_0/source/libcli/raw/clitree.c	2005-01-17 22:53:00 UTC (rev 4810)
@@ -173,9 +173,13 @@
 	io.in.calling_name = my_name;
 	io.in.service = service;
 	io.in.service_type = service_type;
+	io.in.domain = domain;
 	io.in.user = user;
-	io.in.domain = domain;
-	io.in.password = password;
+	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)) {



More information about the samba-cvs mailing list