[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-25 Thread Andreas Hasenack
No worries, thanks for following up

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-24 Thread Andreas Hasenack
@bloodyiron, you said in
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/comments/81
that you had SMB1 disabled in your network, and I confirmed that with
SMB1 disabled there is still a bug, and that bug is
https://bugs.launchpad.net/gvfs/+bug/1828107, and it affects all ubuntu
releases. I don't know what else to tell you, sorry, it sounds like you
are ignoring that open bug.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-24 Thread Andreas Hasenack
** Attachment added: "disco-connect-to-pub.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5272829/+files/disco-connect-to-pub.png

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-24 Thread Andreas Hasenack
Disco works out of the box wrt this bug specifically. Which is expected
since it has the same fix.

windows network tab is populated (see disco-windows-network-
populated.png)

Connecting to the pub share (see disco-connect-to-pub.png).

smbstatus shows smb3.11 in the pub connection, and NT1 for IPC$:
ubuntu@disco-desktop:~$ sudo smbstatus

Samba version 4.10.0-Ubuntu
PID Username GroupMachine   
Protocol Version  Encryption   Signing  

3969ubuntu   ubuntu   127.0.0.1 (ipv4:127.0.0.1:43370)  
SMB3_11   -partial(AES-128-CMAC)
3752nobody   nogroup  disco-desktop (ipv4:192.168.122.70:53276) NT1 
  --
3721nobody   nogroup  disco-desktop (ipv4:127.0.0.1:40552)  NT1 
  --
3805nobody   nogroup  disco-desktop (ipv4:127.0.0.1:40562)  NT1 
  --
3731nobody   nogroup  disco-desktop (ipv4:192.168.122.70:53270) NT1 
  --

Service  pid Machine   Connected at Encryption  
 Signing 
-
IPC$ 3721disco-desktop seg jun 24 10:35:20 2019 -03 -   
 -   
pub  3969127.0.0.1 seg jun 24 10:36:16 2019 -03 -   
 -   
IPC$ 3752disco-desktop seg jun 24 10:35:31 2019 -03 -   
 -   
IPC$ 3805disco-desktop seg jun 24 10:35:54 2019 -03 -   
 -   
IPC$ 3731disco-desktop seg jun 24 10:35:23 2019 -03 -   
 -   

No locked files


If you have NT1 disabled in your network, then the windows network tab will be 
empty, and that's https://bugs.launchpad.net/gvfs/+bug/1828107 and it affects 
all releases still.

** Attachment added: "disco-windows-network-populated.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5272828/+files/disco-windows-network-populated.png

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-21 Thread Andreas Hasenack
** Attachment added: "cosmic-connecting-to-pub-after-test.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5272234/+files/cosmic-connecting-to-pub-after-test.png

** Tags removed: verification-needed-cosmic
** Tags added: verification-done-cosmic

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-21 Thread Andreas Hasenack
Cosmic verification

First reproducing the bug with these packages:
  Version table:
 *** 1.38.1-0ubuntu1.2 500
500 http://br.archive.ubuntu.com/ubuntu cosmic-updates/main amd64 
Packages


windows network tab is empty (see screenshot 
cosmic-empty-windows-network-before-test.png)

Now with these packages:
 *** 1.38.1-0ubuntu1.3.1 500
500 http://br.archive.ubuntu.com/ubuntu cosmic-proposed/main amd64 
Packages

After a logout and new login, the windows network tab is populated (see
cosmic-populated-windows-network-after-test.png) and I can connect to
the displayed pub share (see cosmic-connecting-to-pub-after-test.png).

After I'm connected, smbstatus shows that smb3.11 was used for the connection 
to pub:
ubuntu@cosmic-desktop:~$ sudo smbstatus

Samba version 4.8.4-Ubuntu
PID Username GroupMachine   
Protocol Version  Encryption   Signing  

5812nobody   nogroup  cosmic-desktop (ipv4:192.168.122.27:57330) 
NT1   --
5821nobody   nogroup  cosmic-desktop (ipv4:192.168.122.27:57334) 
NT1   --
5880ubuntu   ubuntu   192.168.122.27 (ipv4:192.168.122.27:47898) 
SMB3_11   -partial(AES-128-CMAC)
5828nobody   nogroup  cosmic-desktop (ipv4:192.168.122.27:57336) 
NT1   --

Service  pid Machine   Connected at Encryption  
 Signing 
-
IPC$ 5828cosmic-desktop Fri Jun 21 21:36:38 2019 UTC -  
  -   
IPC$ 5812cosmic-desktop Fri Jun 21 21:36:18 2019 UTC -  
  -   
pub  5880192.168.122.27 Fri Jun 21 21:37:00 2019 UTC -  
  -   
IPC$ 5821cosmic-desktop Fri Jun 21 21:36:21 2019 UTC -  
  -   

No locked files

As stated in the bionic verification, a fix for
https://bugs.launchpad.net/gvfs/+bug/1828107 is still relevant.

cosmic verification succeeded.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-21 Thread Andreas Hasenack
** Attachment added: "cosmic-empty-windows-network-before-test.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5272232/+files/cosmic-empty-windows-network-before-test.png

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-21 Thread Andreas Hasenack
** Attachment added: "cosmic-populated-windows-network-after-test.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5272233/+files/cosmic-populated-windows-network-after-test.png

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-21 Thread Andreas Hasenack
Bionic desktop verification


With gvfs-backends from the release pocket:
ubuntu@bionic-desktop:~$ apt-cache policy gvfs-backends
gvfs-backends:
  Installed: 1.36.1-0ubuntu1.3
  Candidate: 1.36.1-0ubuntu1.3
  Version table:
 *** 1.36.1-0ubuntu1.3 500
500 http://br.archive.ubuntu.com/ubuntu bionic-updates/main amd64 
Packages

I get an empty "windows network" tab in the desktop (see attached
screenshot empty-windows-network-before-test.png).

After updating to this package from proposed:
  Version table:
 *** 1.36.1-0ubuntu1.3.2 500
500 http://br.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 
Packages

And logging out and back in, I get a populated windows network tab (see
screenshot populated-windows-network-after-test.png).

I can then connect to the pub share on localhost (see screenshot 
connecting-to-pub-after-test.png) and, once that is done, smbstatus shows this 
output:
ubuntu@bionic-desktop:~$ sudo smbstatus

Samba version 4.7.6-Ubuntu
PID Username GroupMachine   
Protocol Version  Encryption   Signing  

3771nobody   nogroup  bionic-desktop (ipv4:192.168.122.213:56026) 
NT1   --
3874ubuntu   ubuntu   192.168.122.213 (ipv4:192.168.122.213:32800) 
SMB3_11   -partial(AES-128-CMAC)
3807nobody   nogroup  bionic-desktop (ipv4:192.168.122.213:56028) 
NT1   --
3762nobody   nogroup  bionic-desktop (ipv4:192.168.122.213:56022) 
NT1   --

Service  pid Machine   Connected at Encryption  
 Signing 
-
IPC$ 3762bionic-desktop Fri Jun 21 21:07:33 2019 UTC -  
  -   
IPC$ 3807bionic-desktop Fri Jun 21 21:08:09 2019 UTC -  
  -   
IPC$ 3771bionic-desktop Fri Jun 21 21:07:37 2019 UTC -  
  -   
pub  3874192.168.122.213 Fri Jun 21 21:08:30 2019 UTC - 
   -   

No locked files


The connection to the pub share is using SMB3_11.

The connections using NT1 show why
https://bugs.launchpad.net/gvfs/+bug/1828107 is still relevant, but it's
a separate bug. See comment #55 for my reasoning. I think releasing this
update is a step in the right direction.

Bionic verification succeeded.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-21 Thread Andreas Hasenack
** Attachment added: "populated-windows-network-after-test.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5272226/+files/populated-windows-network-after-test.png

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-21 Thread Andreas Hasenack
** Attachment added: "connecting-to-pub-after-test.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5272227/+files/connecting-to-pub-after-test.png

** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-06-21 Thread Andreas Hasenack
** Attachment added: "empty-windows-network-before-test.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5272225/+files/empty-windows-network-before-test.png

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-27 Thread Andreas Hasenack
@Bloodyiron, please run "nmblookup -M " and check if
the machine that is listed has SMB1 disabled or not. If it has SMB1
disabled, then it's https://bugs.launchpad.net/gvfs/+bug/1828107

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-08 Thread Andreas Hasenack
Try the test case in a disco vm

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-08 Thread Andreas Hasenack
The "windows network" tab depends on an election to happen between the
smb servers, and a master browser being elected. It's the master browser
that is contacted for the list of machines in the network. If that
machine has smb1 disabled, for example, then this won't work, because it
will hit #1828107 (that's my understanding).

I suggest to focus on the test case presented in the bug description. If
there are still cases where it doesn't work, then it's a separate bug,
because disco has the same fix in place as we are applying here.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-07 Thread Andreas Hasenack
I filed https://bugs.launchpad.net/gvfs/+bug/1828107 for the remaining
issue of connecting to machines in the windows network tab that have
disabled SMB1. Note that a connection made specifically to the
machine/ip still works (smb:///)

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-07 Thread Andreas Hasenack
I found an upstream issue about not being able to get a share list from
a machine that has SMB1 disabled:
https://gitlab.gnome.org/GNOME/gvfs/issues/307


** Bug watch added: gitlab.gnome.org/GNOME/gvfs/issues #307
   https://gitlab.gnome.org/GNOME/gvfs/issues/307

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-07 Thread Andreas Hasenack
Disco shouldn't have this bug. It (gvfs) will have issues connecting to
smb servers that have disabled SMB1, just like bionic and everything in
between.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-07 Thread Andreas Hasenack
It is, that's all that's needed now. I heard another, unrelated, gvfs
SRU was in the works and was hitting problems, though.

I have a no-change rebuild in this PPA for bionic:
https://launchpad.net/~ahasenack/+archive/ubuntu/gvfs-rebuild-1778322/

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-03 Thread Andreas Hasenack
Ah, you said so, sorry

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-03 Thread Andreas Hasenack
@morbius1, how did you disable smb1 on your test samba server? "server
min protocol = SMB2"?

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-03 Thread Andreas Hasenack
@seb128, the test case uses a localhost samba server, with a non-guest
pub share pointing at /tmp. Not even that was visible in gnome before
this fix.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-03 Thread Andreas Hasenack
Nice, that's good to know, thanks for pointing it out.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-03 Thread Andreas Hasenack
> The original issue was you couldn't get a listing of samba hosts in Nautilus 
> so
> yes that issue is fixed.

The original problem also affected linux samba boxes, which do allow
smb1 by default still. You couldn't even see them in nautilus. Now you
can, and you can browse their shares and connect to them.

> But why did we want to get the list in the first place? I would argue so that 
> you could gain access to those hosts from the same process and here it only 
> applies to hosts that still allow NT1 / SMB1.

I agree, and the fix we have here is a step in that direction. But the
whole premise of being able to seamlessly connect to boxes that have
SMB1 disabled is not where this started, and might require more
troubleshooting. Depending on how complicated that is, I just wouldn't
want to prevent users from getting this particular fix while the other
part is being looked at.

That being said, I'll do some experiments with boxes that have SMB1
disabled and perhaps file a new upstream bug with gvfsd. But I think
this very particular bug here in launchpad is fixed with the changes to
samba and gvfsd that exist today.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-05-01 Thread Andreas Hasenack
A new rebuild is needed. To verify in another way, check the Depends
line of the gvfs-backends package:

$ dpkg -s gvfs-backends|grep Depends|grep smbclient
Depends: libarchive13 (>= 3.0.4), , libsmbclient (>= 2:4.0.3+dfsg1)


versus

$ dpkg -s gvfs-backends|grep Depends|grep smbclient
Depends: libarchive13 (>= 3.0.4), , libsmbclient (>= 
2:4.7.6+dfsg~ubuntu-0ubuntu2.8~)

It must require a newer libsmbclient like in the second case above.

The old windows network is a bit brittle. Elections need to take place,
a master browser has to be elected, etc. Even getting a name can take a
while, as the network needs to be checked for collisions. Usually it's a
matter of time until the computers show up.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-30 Thread Andreas Hasenack
Yes, please open a separate bug report, and attach your smb.conf there
please.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-29 Thread Andreas Hasenack
I think it's exactly getting the share list using NT1 that is failing. I
will look at this tomorrow, see what smbclient -L is doing wrt NT1
temporary downgrade.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-29 Thread Andreas Hasenack
I indeed think interacting with a server that has disabled SMB1 entirely
is a related, but different problem. Can you get smbclient -L to work
with such a server, using the netbios hostname, or does it fail when
listing the shares?

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-29 Thread Andreas Hasenack
Does this also happen with Ubuntu Disco? I checked upstream and there
were no other changes following this one in that file:

commit 6c8bc39f570ea82cf14e83ce7d1dbdbe569d09d1
Author: Ondrej Holy 
Date:   Wed Sep 12 15:28:51 2018 +0200

smbbrowse: Force NT1 protocol version for workgroup support

"Windows Network" doesn't work with recent samba versions, because
"client max protocol" has been changed from NT1 to SMB3 recently.
NT1 is mandatory for workgroup support. Let's force NT1 using the
newly added smbc_setOptionProtocols API if available. But force this
only when neither hostname, nor IP address is used. This among others
prevents complete breakage if NT1 is disabled on server. Use GResolver
to implement this heuristic.

https://bugzilla.gnome.org/show_bug.cgi?id=780958


In the SRU test, smbstatus does show some NT1 connections, but in the end the 
share connection is using SMB3.11, which is what we want.

Since the machine now shows up, and it wasn't before, this may warrant a
new separate bug.

** Bug watch added: bugzilla.gnome.org/ #780958
   https://bugzilla.gnome.org/show_bug.cgi?id=780958

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-24 Thread Andreas Hasenack
Check your smb.conf, maybe you have some overriding setting in there.
The default disco install I tested had no config file.

With gvfsd running in debug mode, there is also a specific message you
can look for which will tell you if your gvfsd was rebuilt with the
right samba version: "Forcing NT1 protocol version"

I followed steps 1 and 2 last time I checked this:
https://wiki.gnome.org/Projects/gvfs/debugging

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-22 Thread Andreas Hasenack
It worked just fine on a disco desktop default install.

I brought up a bionic vm, which has samba running and set to a workgroup
called "workgroup" and has a /pub share. On disco, I click on "other
locations", then "windows network", and I see "WORKGROUP". I can click
on "WORKGROUP", which then shows me the other server. If I click on
that, I see the "pub" share.

The only samba packages you need for this network browsing are
installed: libsmbclient, libwbclient0, samba-libs. I have these with
version 4.10.0 as expected.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-22 Thread Andreas Hasenack
I checked disco when I prepared these updates for bionic and cosmic, and
it was allright. Let me re-check with a default install using the CD
this time, now that it is released.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-05 Thread Andreas Hasenack
Cosmic verification (continued)

Now installing the updated samba packages, and rebuilding gvfs locally:

samba:
  Installed: 2:4.8.4+dfsg-2ubuntu2.2
  Candidate: 2:4.8.4+dfsg-2ubuntu2.2
  Version table:
 *** 2:4.8.4+dfsg-2ubuntu2.2 500
500 http://br.archive.ubuntu.com/ubuntu cosmic-proposed/main amd64 
Packages

gvfs:
ubuntu@ubuntu:~/deb/gvfs/gvfs-1.38.1$ grep smbc_setOptionProtocol ../build.log 
Checking for function "smbc_setOptionProtocols" : YES

$ apt-cache policy gvfs-backends
gvfs-backends:
  Installed: 1.38.1-0ubuntu1.3~andreas1
  Candidate: 1.38.1-0ubuntu1.3
  Version table:
 1.38.1-0ubuntu1.3 500
500 http://br.archive.ubuntu.com/ubuntu cosmic-proposed/main amd64 
Packages
 *** 1.38.1-0ubuntu1.3~andreas1 100
100 /var/lib/dpkg/status

Note: there is an old gvfs in proposed already, but it was NOT rebuilt
with this samba version.

Reboot, login, access windows network, and the workgroup and computer
are displayed (see attached screenshot).

Accessing the "pub" share works after authenticating, and in that case 
smbstatus shows SMB3.11 was used:
root@ubuntu:~# smbstatus

Samba version 4.8.4-Ubuntu
PID Username GroupMachine   
Protocol Version  Encryption   Signing  

2033nobody   nogroup  ubuntu (ipv4:192.168.122.79:51830)NT1 
  --
2044nobody   nogroup  ubuntu (ipv4:192.168.122.79:51834)NT1 
  --
2240nobody   nogroup  ubuntu (ipv4:192.168.122.79:51844)NT1 
  --
2420ubuntu   ubuntu   192.168.122.79 (ipv4:192.168.122.79:48332) 
SMB3_11   -partial(AES-128-CMAC)

Service  pid Machine   Connected at Encryption  
 Signing 
-
IPC$ 2044ubuntuFri Apr  5 16:07:06 2019 UTC -   
 -   
IPC$ 2033ubuntuFri Apr  5 16:07:04 2019 UTC -   
 -   
pub  2420192.168.122.79 Fri Apr  5 16:08:54 2019 UTC -  
  -   
IPC$ 2240ubuntuFri Apr  5 16:08:07 2019 UTC - 



Cosmic verification succeeded.

** Attachment added: "cosmic-windows-network-full.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5253146/+files/cosmic-windows-network-full.png

** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-05 Thread Andreas Hasenack
I think I mixed the verification-done tags, but both are done now.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-05 Thread Andreas Hasenack
Cosmic verification

Confirming the bug:
ubuntu@ubuntu:~$ apt-cache policy samba gvfs-backends
samba:
  Installed: 2:4.8.4+dfsg-2ubuntu2.1
  Candidate: 2:4.8.4+dfsg-2ubuntu2.1
  Version table:
 *** 2:4.8.4+dfsg-2ubuntu2.1 500
500 http://br.archive.ubuntu.com/ubuntu cosmic-updates/main amd64 
Packages
...
gvfs-backends:
  Installed: 1.38.1-0ubuntu1.2
  Candidate: 1.38.1-0ubuntu1.2
  Version table:
 *** 1.38.1-0ubuntu1.2 500
500 http://br.archive.ubuntu.com/ubuntu cosmic-updates/main amd64 
Packages
...


Bug reproduced, see attached screenshot. Windows network browsing is empty.

(continued)


** Attachment added: "cosmic-windows-network-empty.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5253145/+files/cosmic-windows-network-empty.png

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-05 Thread Andreas Hasenack
Bionic:

full smbstatus output, showing the connection to the pub share as well:
root@ubuntu:~# smbstatus

Samba version 4.7.6-Ubuntu
PID Username GroupMachine   
Protocol Version  Encryption   Signing  

1828nobody   nogroup  ubuntu (ipv4:192.168.122.28:35678)NT1 
  --
2084nobody   nogroup  ubuntu (ipv4:192.168.122.28:35694)NT1 
  --
2093ubuntu   ubuntu   192.168.122.28 (ipv4:192.168.122.28:41040) 
SMB3_11   -partial(AES-128-CMAC)

Service  pid Machine   Connected at Encryption  
 Signing 
-
IPC$ 2084ubuntuFri Apr  5 15:33:26 2019 UTC -   
 -   
IPC$ 1828ubuntuFri Apr  5 15:31:23 2019 UTC -   
 -   
pub  2093192.168.122.28 Fri Apr  5 15:33:32 2019 UTC -  
  -   

No locked files


** Tags removed: verification-needed-cosmic
** Tags added: verification-done-cosmic

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-05 Thread Andreas Hasenack
Bionic verification (continued)

Now installing the new samba packages. Since I need a gvfs rebuild with
the new samba packages, I'm doing that locally.

So in the end I now have:
samba from proposed:
 *** 2:4.7.6+dfsg~ubuntu-0ubuntu2.8 500
500 http://br.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 
Packages

gvfs built locally:
ubuntu@ubuntu:~/deb/gvfs/gvfs-1.36.1$ grep smbc_setOptionProtocol ../build.log 
Checking for function "smbc_setOptionProtocols": YES
gvfs-backends:
  Installed: 1.36.1-0ubuntu1.4~andreas1
  Candidate: 1.36.1-0ubuntu1.4~andreas1
  Version table:
 *** 1.36.1-0ubuntu1.4~andreas1 100
100 /var/lib/dpkg/status

I then reboot, login, and the windows network is populated with the
workgroup and the host.

I then connect to the host, and the pub share, authenticate, and smbstatus 
confirms the connection and that SMB3_11 was used:
root@ubuntu:~# smbstatus

Samba version 4.7.6-Ubuntu
PID Username GroupMachine   
Protocol Version  Encryption   Signing  

1828nobody   nogroup  ubuntu (ipv4:192.168.122.28:35678)NT1 
  --
2084nobody   nogroup  ubuntu (ipv4:192.168.122.28:35694)NT1 
  --
2093ubuntu   ubuntu   192.168.122.28 (ipv4:192.168.122.28:41040) 
SMB3_11   -partial(AES-128-CMAC)


Bionic verification succeeded.

** Attachment added: "bionic-windows-network-full.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5253141/+files/bionic-windows-network-full.png

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-05 Thread Andreas Hasenack
Bionic verification

Bug reproduced with the following packages:
ubuntu@ubuntu:~$ apt-cache policy samba gvfs-backends
samba:
...
 *** 2:4.7.6+dfsg~ubuntu-0ubuntu2.7 500
500 http://br.archive.ubuntu.com/ubuntu bionic-updates/main amd64 
Packages
100 /var/lib/dpkg/status
...
gvfs-backends:
...
 *** 1.36.1-0ubuntu1.3 500
500 http://br.archive.ubuntu.com/ubuntu bionic-updates/main amd64 
Packages
500 http://br.archive.ubuntu.com/ubuntu bionic-security/main amd64 
Packages
100 /var/lib/dpkg/status
...

(see attached screenshot)

** Attachment added: "bionic-windows-network-empty.png"
   
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+attachment/5253140/+files/bionic-windows-network-empty.png

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-03 Thread Andreas Hasenack
For anyone wanting to test this bug, please note you will also have to
wait for a gvfs rebuild with this new samba package.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-04-02 Thread Andreas Hasenack
** Description changed:

  [Impact]
  The so called "browsing a windows network" made use of an SMB1 protocol 
version feature. Recent versions of samba, including the one released with 
bionic, default to a higher versions of the protocol which lacks this feature. 
As a result, the "other locations -> windows network" tab in Nautilus is empty 
even when there are windows or samba machines in the network.
  Accessing such machines directly, via smb:/// type urls, 
continues to work.
  
  The fix is two-fold:
  - introduce a new samba API call that can be used to set the protocol version 
to use
  - change applications to make use of this API call to set the protocol versio 
to SMB1/NT1 just for the network browsing
  
  gvfs was updated to make use of this api call, if detected at build
  time. To complete this SRU, gvfs needs a no-change rebuild *after* samba
  was accepted into proposed.
  
  [Test case]
  * Launch a bionic desktop vm. You can start with a server one, and then 
install the "ubuntu-desktop" package. In the same command, also install the 
packages we need for this test:
  $ sudo apt update
  $ sudo apt install ubuntu-desktop samba smbclient
  
  * set a password for the ubuntu user, so you can login at the graphical 
console
  $ sudo passwd ubuntu
  
+ * set the same password for the ubuntu samba user:
+ sudo smbpasswd -a ubuntu
+ 
+ * add a simple [pub] share to samba:
+ $ printf "[pub]\n\tpath=/tmp\n\tguest ok = no\n" | sudo tee -a 
/etc/samba/smb.conf
+ 
  * reboot
  $ sudo reboot
  
  * login at the graphical console as the ubuntu user. Go through the
  first-user-setup motions as you want.
  
  * try to browse the windows network via "other locations -> windows
  network". You will get an empty folder.
  
  * update the samba and gvfs packages
- * logout and login again on the gui, browse the windows network again. This 
time it will show the "WORKGROUP" folder, and if you click through, you will 
see yourself (your VM).
+ * logout and login again on the gui, browse the windows network again. This 
time it will show the "WORKGROUP" folder, and if you click through, you will 
see yourself (your VM) and the [pub] share, among others.
+ 
+ * click on the "pub" share, select registered user and login with the
+ ubuntu credentials you created earlier with smbpasswd.
+ 
+ * in another terminal, run this command to confirm that the SMB protocol 
version that was used to connect to [pub] was not just NT1/SMB1, but higher:
+ $ sudo smbstatus
+ ...
+ 8779ubuntu   ubuntu   192.168.122.94 (ipv4:192.168.122.94:60818) 
SMB3_11   -partial(AES-128-CMAC)
+ 
+ Note "SMB3_11" above.
+ 
  
  [Regression potential]
  The samba update itself just introduces and exposes a new API call. It's up 
to other applications to make use of that. gvfs was patched to detect this call 
at build time and use it if it's detected.
  Packages that are not rebuilt will not see the change, and packages that 
*are* rebuilt will only see the change if they make use of it.
  
  [Other Info]
  This update introduces a specific runtime dependency between gvfs and 
libsmbclient due to the new API call added to the latter. Any package that is 
rebuilt with libsmbclient and makes use of that API call will get this specific 
dependency. This is handled automatically by dh_mkshlibs.
  
  To complete this SRU, gvfs will need a no-change rebuild after samba was
  accepted into proposed.
  
+ Disco's gvfs is already using the new call, as can be seen in this build log 
https://launchpadlibrarian.net/415424052/buildlog_ubuntu-disco-amd64.gvfs_1.40.0-1_BUILDING.txt.gz:
+ ...
+ Dependency smbclient found: YES 0.5.0
+ Checking for function "smbc_setOptionProtocols" with dependency smbclient: YES
+ 
+ The smbc_setOptionProtocols() call is only used when the url is like
+ "smb:///", or the server cannot be resolved. The downgrade overrides the
+ setting in smb.conf, and is used just for this case: browsing the
+ network. When connecting to a machine, the url is like "smb:///",
+ and then this function we are adding is not called.
+ 
+ I updated the test to actually click on the machine that shows up in the
+ network browsing, and then check with "smbstatus" which version of the
+ protocol was used when connecting to an actual share.
  
  ---
- 
  
  Nautilus should show smbtree and host on the smb network.
  
  When inputing this command:
  killall gvfsd-smb-browse && GVFS_DEBUG=1 /usr/lib/gvfs/gvfsd-smb-browse
  
  You can see the error:
  smb-network: Queued new job 0x55b19a2c9f40 (GVfsJobCreateMonitor)
  smb-network: send_reply(0x55b19a2c9f40), failed=1 (Action not supported by 
the processing engine)
  smb-network: backend_dbus_handler org.gtk.vfs.Mount:QueryFilesystemInfo 
(pid=5708)
  smb-network: Queued new job 0x55b19a2e7820 (GVfsJobQueryFsInfo)
  smb-network: send_reply(0x55b19a2e7820), failed=0 ()
  smb-network: backend_dbus_handler org.gtk.vfs.Mount:Enumerate (pid=5708)
  smb-network: Queued 

[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-03-29 Thread Andreas Hasenack
** Description changed:

- * Impact
- On Bionic Beaver 18.04.1 gvfs-smb-browse can't browse smbtree because of that 
Nautilus displays "Empty Folder" when clicking "Windows Network"
+ [Impact]
+ The so called "browsing a windows network" made use of an SMB1 protocol 
version feature. Recent versions of samba, including the one released with 
bionic, default to a higher versions of the protocol which lacks this feature. 
As a result, the "other locations -> windows network" tab in Nautilus is empty 
even when there are windows or samba machines in the network.
+ Accessing such machines directly, via smb:/// type urls, 
continues to work.
  
- * Test case
- Try to browse a smb share from a bionic client
+ The fix is two-fold:
+ - introduce a new samba API call that can be used to set the protocol version 
to use
+ - change applications to make use of this API call to set the protocol versio 
to SMB1/NT1 just for the network browsing
  
- * Regression potential
- Check that smb browsing/mounts still work as they should
+ gvfs was updated to make use of this api call, if detected at build
+ time. To complete this SRU, gvfs needs a no-change rebuild *after* samba
+ was accepted into proposed.
  
- ---
+ [Test case]
+ * Launch a bionic desktop vm. You can start with a server one, and then 
install the "ubuntu-desktop" package. In the same command, also install the 
packages we need for this test:
+ $ sudo apt update
+ $ sudo apt install ubuntu-desktop samba smbclient
+ 
+ * set a password for the ubuntu user, so you can login at the graphical 
console
+ $ sudo passwd ubuntu 
+ 
+ * reboot
+ $ sudo reboot
+ 
+ * login at the graphical console as the ubuntu user. Go through the
+ first-user-setup motions as you want.
+ 
+ * try to browse the windows network via "other locations -> windows
+ network". You will get an empty folder.
+ 
+ * update the samba and gvfs packages
+ * logout and login again on the gui, browse the windows network again. This 
time it will show the "WORKGROUP" folder, and if you click through, you will 
see yourself (your VM).
+ 
+ [Regression potential]
+ The samba update itself just introduces and exposes a new API call. It's up 
to other applications to make use of that. gvfs was patched to detect this call 
at build time and use it if it's detected.
+ Packages that are not rebuilt will not see the change, and packages that 
*are* rebuilt will only see the change if they make use of it.
+ 
+ 
+ [Other Info]
+ This update introduces a specific runtime dependency between gvfs and 
libsmbclient due to the new API call added to the latter. Any package that is 
rebuilt with libsmbclient and makes use of that API call will get this specific 
dependency. This is handled automatically by dh_mkshlibs.
+ 
+ To complete this SRU, gvfs will need a no-change rebuild after samba was
+ accepted into proposed.
+ 
  
  Nautilus should show smbtree nad host on the smb network.
  
  When inputing this command:
  killall gvfsd-smb-browse && GVFS_DEBUG=1 /usr/lib/gvfs/gvfsd-smb-browse
  
  You can see the error:
  smb-network: Queued new job 0x55b19a2c9f40 (GVfsJobCreateMonitor)
  smb-network: send_reply(0x55b19a2c9f40), failed=1 (Action not supported by 
the processing engine)
  smb-network: backend_dbus_handler org.gtk.vfs.Mount:QueryFilesystemInfo 
(pid=5708)
  smb-network: Queued new job 0x55b19a2e7820 (GVfsJobQueryFsInfo)
  smb-network: send_reply(0x55b19a2e7820), failed=0 ()
  smb-network: backend_dbus_handler org.gtk.vfs.Mount:Enumerate (pid=5708)
  smb-network: Queued new job 0x55b19a2c30c0 (GVfsJobEnumerate)
  smb-network: send_reply(0x55b19a2c30c0), failed=0 ()
  
  Proposed solution:
  Add gvfsbackendbrowse-switch-to-NT1.patch disscused on RedHat Bugzilla
  [link]https://bugzilla.redhat.com/show_bug.cgi?id=1513394
  which implements "change to NT1" in gvfs-smb-browse to browse smbtree to 
aviod adding "max client protocol" = NT1" to smb.conf to switch all samba to 
unsafe NT1 which most users are doing to correct this bug.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-03-28 Thread Andreas Hasenack
It worked with the updated patch. Packages rebuilt in the PPA. I'll
prepare a merge proposal and SRU this into bionic. We will have to
rebuild gvfs there, though, after samba lands in proposed.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-03-28 Thread Andreas Hasenack
The original samba patch had a typo/error, this is the fix for that:

https://github.com/samba-
team/samba/commit/885435e8a4dc561749b880f8be7a32041fa954ec

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-03-27 Thread Andreas Hasenack
I just tried with my build from the ppa, but it's not working. When
enabling debugging in gvfsd, I can see it setting the protocol to NT1:

network: Added new job source 0x559ce1b3e070 (GVfsBackendNetwork)
network: Queued new job 0x559ce1b4cab0 (GVfsJobMount)
smb-network: g_vfs_backend_smb_browse_init: default workgroup = 'NULL'
smb-network: Added new job source 0x564f06543070 (GVfsBackendSmbBrowse)
smb-network: Queued new job 0x564f06549ac0 (GVfsJobMount)
smb-network: Error resolving “EXAMPLE”: Name or service not known
smb-network: Forcing NT1 protocol version
smb-network: do_mount - URI = smb://EXAMPLE


That message, "Forcing NT1 protocol version", comes from the gvfs patch and 
confirms that it is using the new smbc_setOptionProtocols() call.

If somebody else wants to try in the meantime, the packages for bionic
are at https://launchpad.net/~ahasenack/+archive/ubuntu/samba-browse-
nt1-1778322/

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-03-27 Thread Andreas Hasenack
Builds in a ppa look good:
...
Native dependency smbclient found: YES 0.2.3
Checking for function "smbc_setOptionProtocols": YES
...

Checking for real with a bionic desktop now.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1778322] Re: gvfs-smb-browse can't browse samba/smb tree

2019-03-10 Thread Andreas Hasenack
Looking at this next.

** Changed in: samba (Ubuntu)
 Assignee: (unassigned) => Andreas Hasenack (ahasenack)

** Changed in: samba (Ubuntu)
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1778322

Title:
  gvfs-smb-browse can't browse samba/smb tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1778322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs