From nobody@FreeBSD.org  Fri May  8 07:19:46 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 75EAD1065674
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 May 2009 07:19:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 63D938FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 May 2009 07:19:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n487JjaF096082
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 8 May 2009 07:19:45 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n487Jj3s096081;
	Fri, 8 May 2009 07:19:45 GMT
	(envelope-from nobody)
Message-Id: <200905080719.n487Jj3s096081@www.freebsd.org>
Date: Fri, 8 May 2009 07:19:45 GMT
From: Oleg Ginzburg <oleg.ginzburg@nevosoft.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/gvfs ports with smbclient support doesn't pass anonymous browsing
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         134361
>Category:       ports
>Synopsis:       devel/gvfs ports with smbclient support doesn't pass anonymous browsing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 08 07:20:01 UTC 2009
>Closed-Date:    Mon May 31 19:50:16 UTC 2010
>Last-Modified:  Mon May 31 19:50:16 UTC 2010
>Originator:     Oleg Ginzburg
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD oleg.nevosoft.local 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Tue May  5 18:52:08 MSD 2009     root@oleg.nevosoft.local:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
gvfs subsystem not trying for force anonymous browse on SMB network when other  kredentical (login/pw/Kerberos) is not correct.
for example, gvfs-ls smb:/// no showing anything and as effects, some application (nautilus) not showing anything in Network. Problem appear with upgrading to Gnome 2.26.0 with gvfs-1.2.2

>How-To-Repeat:
gvfs-ls smb:/// or go to Network browsing in Nautilus when PC in Windows browseable network
>Fix:
this code is not patch, just try forcing anonymous attempt  (for /usr/local/libexec/gvfsd-smb-browse) and this work, so the truth is out there

--- daemon/gvfsbackendsmbbrowse.c       2009-02-26 12:12:24.000000000 +0300
+++ gvfsbackendsmbbrowse.c      2009-05-07 20:22:56.000000000 +0400
@@ -318,6 +318,12 @@
       return;
     }

+      /* Try anon login */
+      strncpy (username_out, "", unmaxlen);
+      strncpy (password_out, "", pwmaxlen);
+      /* Try again if anon login fails */
+      backend->mount_try_again = TRUE;
+
   if (backend->mount_try == 0 &&
       backend->user == NULL &&
       backend->domain == NULL)


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri May 8 07:20:13 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134361 
State-Changed-From-To: open->analyzed 
State-Changed-By: marcus 
State-Changed-When: Sat May 9 20:15:22 UTC 2009 
State-Changed-Why:  
You are right, and FreeBSD isn't the only OS seeing this (see 
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/316862).  Can you 
raise a bug in GNOME Bugzilla for this (http://bugzilla.gnome.org)? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134361 
State-Changed-From-To: analyzed->closed 
State-Changed-By: marcus 
State-Changed-When: Mon May 31 19:49:54 UTC 2010 
State-Changed-Why:  
This has since been fixed with the update of samba-libsmbclient.  It's working 
for me now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134361 
>Unformatted:
