On Mon, 14 Oct 2002, Buchan Milne wrote:

> Stew Benedict wrote:
> > On Mon, 14 Oct 2002, Buchan Milne wrote:
> > 
> > 
> >>Only problem is that it only authenticates for the share if it can't 
> >>connect as guest. So you can't get to your home directory on a samba 
> >>server with a homes share but allowing guest access. It would be nice to 
> >>be able to set a user-name and password before browsing a machine.
> >>
> >>And it would be nice if *all* password fields used password boxes, 
> >>rather than having your password visible in the clear.
> >>
> > 
> > 
> > Fixed the last item in CVS. The first I'm not sure how to handle.  It
> > should be falling back to asking for the username/password after guest
> > browsing fails.
> > 
> 
> The problem is when guest browsing is ok, but not all shares are visible 
> as guest. I am not sure if this is a samba-only feature, but here is a 
> guest browsing the default samba setup:
> 
> [bgmilne@bgmilne bgmilne]$ smbclient -L bgmilne
> added interface ip=xxx.xxx.xxx.36 bcast=xxx.xxx.xxx.255 nmask=255.255.255.0
> Password:
> Anonymous login successful
> Domain=[CAE] OS=[Unix] Server=[Samba 2.2.6pre2]
> 
>          Sharename      Type      Comment
>          ---------      ----      -------
>          IPC$           IPC       IPC Service (Samba Server 2.2.6pre2)
>          ADMIN$         Disk      IPC Service (Samba Server 2.2.6pre2)
>          xerox          Printer
>          hp2100         Printer
>          hp1200         Printer
>          dj970          Printer
>          dj1120         Printer
> 
> 
> 
> And here is an autheticated user broswing the same server:
> 
> [bgmilne@bgmilne bgmilne]$ smbclient -L bgmilne -U bgmilne
> added interface ip=xxx.xxx.xxx.36 bcast=xxx.xxx.xxx.255 nmask=255.255.255.0
> Password:
> Domain=[CAE] OS=[Unix] Server=[Samba 2.2.6pre2]
> 
>          Sharename      Type      Comment
>          ---------      ----      -------
>          IPC$           IPC       IPC Service (Samba Server 2.2.6pre2)
>          ADMIN$         Disk      IPC Service (Samba Server 2.2.6pre2)
>          xerox          Printer
>          hp2100         Printer
>          hp1200         Printer
>          dj970          Printer
>          dj1120         Printer
>          bgmilne        Disk      Home Directories
> 
> 
> You will note the additional share available.
> 
> It may *only* be a problem against samba servers, but there are lots of 
> samba servers around.
> 

OK, I see what you're saying.  The reason I proposed the changes I did is
because you get this from a true W2K server:

[stew@rs6000 failure]$ smbclient -L ays-w2k
added interface ip=192.168.192.35 bcast=192.168.192.255
nmask=255.255.255.0
Got a positive name query response from 192.168.192.86 ( 192.168.192.86 )
Password: 
Anonymous login successful
Domain=[AYS] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED

        Server               Comment
        ---------            -------
        AYS-W2K              

        Workgroup            Master
        ---------            -------
        AYS                  AYS-W2K
        AYSNET               MOE

But at the same time, I can browse "moe", which is an older samba server.
So when the browse attempt returns "NT_STATUS_ACCESS_DENIED", we fall back
to asking for authentication credentials.
 
I never really thought about people using samba for Linux-Linux file
sharing, but I suppose they do.

Stew Benedict

-- 
MandrakeSoft    
PPC FAQ: http://www.linux-mandrake.com/en/ppcFAQ.php3
IRC: irc.openproject.net #cooker-ppc


Reply via email to