Index: smb-method.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/modules/smb-method.c,v
retrieving revision 1.21
diff -u -r1.21 smb-method.c
--- smb-method.c	11 Feb 2005 22:29:21 -0000	1.21
+++ smb-method.c	11 Feb 2005 22:56:19 -0000
@@ -1201,13 +1201,20 @@
 	if (actx->passes == 1)
 		initial_authentication (actx);
 	
-	/* If we have a valid user and password then go for it */
+	/* If we have a valid user then go for it */
 	if (actx->use_user) {
 		strncpy (username_out, actx->use_user, unmaxlen);
                 strncpy (password_out, actx->use_password ? actx->use_password : "", pwmaxlen);
                 strncpy (domain_out, actx->use_domain ? actx->use_domain : "", domainmaxlen);
                 DEBUG_SMB(("[auth] Using credentials: %s:%s@%s\n", username_out, password_out, domain_out));
-                        
+
+        /* On first login try a guest login */
+        } else if (actx->passes == 1) {
+                strncpy (username_out, "guest", unmaxlen);
+                strncpy (password_out, "", pwmaxlen);
+                strncpy (domain_out, "", domainmaxlen);
+                DEBUG_SMB(("[auth] No credentials, trying 'guest' user login\n"));
+
 	/* We have no credentials ... */			
 	} else {
 		strncpy (username_out, "", unmaxlen);
