Subject: bin/23401: mount_smb should try server names like smbclient
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: netbsd-bugs
Date: 11/09/2003 22:28:24
>Number:         23401
>Category:       bin
>Synopsis:       mount_smb should try server names like smbclient
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jdolecek
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 09 21:29:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Hubert Feyrer
>Release:        NetBSD 1.6ZE
>Organization:
bla!
>Environment:
	
	
System: NetBSD miyu 1.6ZE NetBSD 1.6ZE (MIYU) #28: Sun Nov 9 00:37:13 GMT 2003 feyrer@miyu:/sys/arch/i386/compile/MIYU i386
Architecture: i386
Machine: i386
>Description:
	Trying to mount a directory exported from WinXP Home, mount_smbfs(8)
	does not succeed while Samba's smbclient works.
	
>How-To-Repeat:
	Export a directory from a WinXP Home machine, try to mount it:

		miyu# mount_smbfs -I 10.0.0.4 //10.0.0.4/mp3s /mnt2
		Password:
		mount_smbfs: unable to open connection: syserr = Connection reset by peer

	Run ethereal on the same thing with Samba's smbclient, and see it first
	try the server name "10.0.0.4" for the SMB request, and after that
	fall back to "*SMBSERVER", which succeeds:

		miyu# mount_smbfs -I 10.0.0.4 //'*SMBSERVER'/mp3s /mnt2
		Password:
		miyu# ls -l /mnt2/* | wc -l
		      58

>Fix:
	Teach mount_smbfs(8) to try a server name of "*SMBSERVER" if the
	connection does not succeed.
>Release-Note:
>Audit-Trail:
>Unformatted: