[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-05-07 Thread Mike Miller
Ok, so Viktor's bug is about timeout behavior when connecting with
network-manager-openconnect using an RSA token.

Viktor: Would you update the description to reflect that, and also say
which version of Ubuntu or of NetworkManager you were using previously
when it did not have this problem? You might also want to report this
upstream at
https://bugzilla.gnome.org/enter_bug.cgi?product=NetworkManager=VPN:%20openconnect.

Julien: It looks like your bug is different, would you file a new bug
report for your specific connection failure, and provide NetworkManager
debug logs as requested?

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-05-07 Thread Viktor Pal
Greetings,

I successfully (accidentally) caught and reproduced the issue.
All the commands were run as regular non-root user.

1.) So what I first did is:
###
$ nmcli con up VPN-NAME
A password is required to connect to 'VPN-NAME'.
Warning: password for 'vpn.secrets.gateway' not given in 'passwd-file' and 
nmcli cannot ask without '--ask' option.
Error: Connection activation failed: no valid VPN secrets.
###

What happened here is that the graphical credentials form showed up.
I started to type in my PIN and then opened the RSA app on my phone started to 
type in the TOKEN and meanwhile I got this error (you see above):
"Error: Connection activation failed: no valid VPN secrets."

2.) Then I got suspicions. Waited for the next TOKEN, typed the PIN and
TOKEN into a text file, ran the same command, immediately copy pasted
the PIN+TOKEN from the text file and it worked.

###
$ nmcli con up VPN-NAME
A password is required to connect to 'VPN-NAME'.
Warning: password for 'vpn.secrets.gateway' not given in 'passwd-file' and 
nmcli cannot ask without '--ask' option.
VPN connection successfully activated (D-Bus active path: 
/org/freedesktop/NetworkManager/ActiveConnection/3)
###

3.) + 4.) I reproduced the same steps from the graphical interface with
the same results.

So I was finally able to log in from gnome network app by being quick
enough with the prepared credentials.

Please note that I never used the --ask option.

It pretty much seems that this is a timeout issue, NM times out while
waiting for the credentials too early, if you are quick enough you are
able to log in though.

I also removed and reinstalled those packages from the 16.04 repo and restarted 
network manager:
ii  libopenconnect5:amd64 7.06-2build2  
  amd64open client for Cisco AnyConnect VPN - shared library
ii  network-manager-openconnect   1.0.2-1build1 
  amd64network management framework (OpenConnect plugin)
ii  network-manager-openconnect-gnome 1.0.2-1build1 
  amd64network management framework (OpenConnect plugin 
GNOME GUI)
ii  openconnect   7.06-2build2  
  amd64open client for Cisco AnyConnect VPN

And it still keeps working.

I hope this helps.

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-05-07 Thread Mike Miller
Viktor: Do you see the same as Julien?

Julien: Can you provide NetworkManager logs with debug logging enabled?

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-05-07 Thread Julien Olivier
Mike: here's what I get using nmcli:

juloliv@juloliv:~$ LANG=C nmcli --ask con up XXX
POST https://sslvpn.XXX-en.com/
Attempting to connect to server X.X.X.X:443
SSL negotiation with sslvpn.XXX.com
Connected to HTTPS on sslvpn.XXX.com
Got HTTP response: HTTP/1.0 302 Temporary moved
GET https://sslvpn.XXX.com/
Attempting to connect to server X.X.X.X:443
SSL negotiation with sslvpn.XXX.com
Connected to HTTPS on sslvpn.XXX.com
Got HTTP response: HTTP/1.0 302 Temporary moved
GET https://sslvpn.XXX.com/+webvpn+/index.html
SSL negotiation with sslvpn.XXX.com
Connected to HTTPS on sslvpn.XXX.com
Please enter your username and password.
Username:XXX
Password:
POST https://sslvpn.XXX.com/+webvpn+/index.html
Error: Connection activation failed: the VPN service returned invalid 
configuration.

This used to work flawlessly before.

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-05-06 Thread Mike Miller
Viktor, thanks for following up. If you'd like to help resolve this,
some debug logs from NetworkManager would be helpful.


Are any messages shown if you run "nmcli con up VPN-NAME"? Does the connection 
fail in the same way?

I am unable to reproduce in a freshly installed 16.04 system with the
NM-openconnect 1.2.0 version pulled from the 16.10 repository.

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-05-06 Thread Viktor Pal
Why is this bug incomplete? What additional information do you need?

I'm happy to provide you anything I'm able to to get this fixed.
This is a critical bug (at least for me) that destroys productivity and 
prevents users to do daily work on Linux.
And the most annoying thing is that this was working for several years (at 
least 5) mostly properly and now it just doesn't.
I can live with this for some time and use command line, but I really hope that 
this bug will be taken seriously in an LTS release.

Thanks a lot and sorry for my words but I'm really disappointed.

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-27 Thread Viktor Pal
I installed these packages from 
https://launchpad.net/ubuntu/+source/network-manager-openconnect/1.2.0-1/+build/9644953
 and restarted network manager daemon and still all the same:
network-manager-openconnect_1.2.0-1_amd64.deb
network-manager-openconnect-gnome_1.2.0-1_amd64.deb

Additional info:
When the login fails the authentication window does not close and reports 
failed login.
So it can report failed logins, but when login succeeds the situation is as 
described above.

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-27 Thread Julien Olivier
I've just tested this new version and it doesn't help.

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-27 Thread Mike Miller
Now that the latest version is published, can you try updating to
1.2.0-1 from the yakkety repository and see if it resolves your
connection problems?

Packages are available from https://launchpad.net/ubuntu/+source
/network-manager-openconnect/1.2.0-1

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-27 Thread Julien Olivier
** Attachment added: "The revelant part from /var/log/syslog just after an 
attempt to connect"
   
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+attachment/4648775/+files/nm_sys.log

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-27 Thread Julien Olivier
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1575354

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-26 Thread Mike Miller
Please take a look at https://wiki.ubuntu.com/DebuggingNetworkManager
and try to submit some logs that show NetworkManager's error message
when trying to connect to the VPN.

** Changed in: network-manager-openconnect (Ubuntu)
   Status: New => Incomplete

** Description changed:

- Connecting to VPN with openconnect through the GUI from gnome stopped
- working in this version of Ubuntu.
- 
- This has been working for years in all the Ubuntu releases and it just
- stopped which is very frustrating and disappointing.
+ Connecting to OpenConnect VPN through the Gnome GUI stopped working in
+ Ubuntu 16.04.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: network-manager-openconnect 1.0.2-1build1
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  Uname: Linux 4.4.0-21-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Tue Apr 26 22:06:41 2016
  SourcePackage: network-manager-openconnect
  UpgradeStatus: No upgrade log present (probably fresh install)

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-26 Thread Viktor Pal
I also realized that meanwhile and removed the links from the comment.
So, yes I can see and edit the connections in "gnome-control-center network" 
and can also initiate the connection.
The usual window pops up asking for my connections after I provide them and 
click on login the window disappears and nothing happens.
I'm using gnome-shell.
Connecting form command line works.

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-26 Thread Viktor Pal
** Description changed:

- Connecting to VPN with openconnect through the GUI from gnome stopped working 
in this version of Ubuntu.
- Other people also complain about that on the Internet:
- 
http://askubuntu.com/questions/760864/no-more-anyconnect-compatible-vpn-transport-in-ubuntu-16-04
- http://ubuntuforums.org/showthread.php?t=2321262
- http://tomtomtom.org/networkmanager-openconnect/
+ Connecting to VPN with openconnect through the GUI from gnome stopped
+ working in this version of Ubuntu.
  
  This has been working for years in all the Ubuntu releases and it just
  stopped which is very frustrating and disappointing.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: network-manager-openconnect 1.0.2-1build1
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  Uname: Linux 4.4.0-21-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Tue Apr 26 22:06:41 2016
  SourcePackage: network-manager-openconnect
  UpgradeStatus: No upgrade log present (probably fresh install)

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-26 Thread Mike Miller
So to clarify, you are reporting that you are able to create and edit
OpenConnect VPN connections, but connecting does not work. That is much
different from the links you refer to, which mostly seem to be about
#1571300.

Can you confirm that the bug you experience is different from #1571300?

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1575354] Re: Can't connect to VPN with openconnect through the GUI

2016-04-26 Thread Viktor Pal
I can create the connection and I can also see it i the list in Gnome,
but when I enter my credentials it just doesn't connect and there is no
error message shown or written to the logs.

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

Title:
  Can't connect to VPN with openconnect through the GUI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs