Re: Fixing SMB browsing
- From: Danny Brow <maillist fullmotions com>
- To: Federico Mena Quintero <federico ximian com>
- Cc: "gnome-vfs-list gnome org" <gnome-vfs-list gnome org>
- Subject: Re: Fixing SMB browsing
- Date: Tue, 21 Feb 2006 02:12:08 -0500
Federico Mena Quintero wrote:
Hi,
For the past few months at Novell, I've been working on Samba-related
stuff for gnome-vfs and Nautilus. Attached is a patch for gnome-vfs's
smb-method.c which does a few things:
- Turns off SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON. This is what causes
the "I get prompted for a password for everything" bug. I have tried to
figure out why this flag got introduced, but it only seems to cause
trouble --- our perform_authentication() and its series of fallbacks
already take the proper steps to ensure that the user is only prompted
for authentication if absolutely required.
- Enables browsing for SMB printers. When you double-click on a SMB
printer in Nautilus, it will launch gnome-cups-add to let you configure
the printer.
- Adds a bunch of debugging code, which can be enabled by touching
~/.debug-gnome-vfs-smb --- if this file exists, the code will create a
log in ~/debug-gnome-vfs-smb.log. This is useful so that random users
can send you a debug log without recompiling.
- Hides administrative shares like IPC$ and ADMIN$, while showing
user-created shares that end in "$".
With this patch, SMB browsing works very well, including kerberized
setups like Active Directory. "Works very well" assumes that the
network is configured for browsing --- it turns out that many networks
with a mixture of Windows and Unix boxes in various subnets are just not
properly set up for that.
The patch is large, but that is due to the code that produces debug
output. The meat is pretty small. I'm surprised that the only changed
really needed to get browsing to work well is the flag I mentioned
above.
OK to commit? :)
Works very nice, I'll be putting this on a few more systems and let you
know how it works. Did you fix it so that it trys' the current username
and password for shares before prompting? I like it like that but some
shares I need a different user name for writing rights. Any way around this?
Thanks,
Dan.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]