OpenConnect does not connect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openconnect (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
kubuntu 15.04 64bit
openconnect:
Installed: 6.00-1
Candidate: 6.00-1
Version table:
*** 6.00-1 0
Login attempt fails with plasma-nm and command line as follows:
openconnect --verbose --no-cert-check --user=myusername --dump-http --no-xmlpost --passwd-on-stdin servername
GET https:/
Attempting to connect to server i.p.add.ress:443
SSL negotiation with servername
Connected to HTTPS on servername
> GET / HTTP/1.1
> Host: servername
> User-Agent: Open AnyConnect VPN Agent v6.00
> Accept: */*
> Accept-Encoding: identity
> X-Transcend-
>
Got HTTP response: HTTP/1.0 302 Object Moved
Content-Type: text/html
Content-Length: 0
Cache-Control: no-cache
Pragma: no-cache
Connection: Close
Date: Wed, 20 May 2015 06:16:56 GMT
Location: /+webvpn+
Set-Cookie: tg=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
HTTP body length: (0)
GET https:/
SSL negotiation with servername
Connected to HTTPS on servername
> GET /+webvpn+
> Host: servername
> User-Agent: Open AnyConnect VPN Agent v6.00
> Accept: */*
> Accept-Encoding: identity
> X-Transcend-
>
Got HTTP response: HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: text/xml
Cache-Control: max-age=0
Set-Cookie: webvpn=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
Set-Cookie: webvpnc=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
Set-Cookie: webvpnlogin=1; secure
X-Transcend-
HTTP body chunked (-2)
< <?xml version="1.0" encoding="UTF-8"?>
< <auth id="main">
< <title>SSL VPN Service</title>
< <ca status="disabled" href="/
<
<
<
< <banner></banner>
< <message>Please enter your username and password.</message>
<
<
< <form method="post" action=
<
< <input type="text" name="username" label="Username:" />
< <input type="password" name="password" label="Password:" />
<
<
<
<
< <input type="submit" name="Login" value="Login" />
< <input type="reset" name="Clear" value="Clear" />
<
<
< </form>
< </auth>
<
Please enter your username and password.
POST https:/
> POST /+webvpn+
> Host: servername
> User-Agent: Open AnyConnect VPN Agent v6.00
> Accept: */*
> Accept-Encoding: identity
> Cookie: webvpnlogin=1
> X-Transcend-
> X-Pad: 000000000000000
> Content-Type: application/
> Content-Length: 27
>
> username=
Got HTTP response: HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: text/xml
Cache-Control: max-age=0
Set-Cookie: webvpn=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
Set-Cookie: webvpnc=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
Set-Cookie: webvpnlogin=1; secure
X-Transcend-
HTTP body chunked (-2)
< <?xml version="1.0" encoding="UTF-8"?>
< <auth id="main">
< <title>SSL VPN Service</title>
< <ca status="disabled" href="/
<
<
<
< <banner></banner>
< <message>Please enter your username and password.</message>
<
<
< <form method="post" action=
<
< <input type="text" name="username" label="Username:" />
< <input type="password" name="password" label="Password:" />
<
<
<
<
< <input type="submit" name="Login" value="Login" />
< <input type="reset" name="Clear" value="Clear" />
<
<
< </form>
< </auth>
<
Please enter your username and password.
Username:myusername
Password:
POST https:/
> POST /+webvpn+
> Host: servername
> User-Agent: Open AnyConnect VPN Agent v6.00
> Accept: */*
> Accept-Encoding: identity
> Cookie: webvpnlogin=1
> X-Transcend-
> X-Pad: 000000000000000
> Content-Type: application/
> Content-Length: 37
>
> username=
Got HTTP response: HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: text/xml
Cache-Control: max-age=0
Set-Cookie: webvpn=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
Set-Cookie: webvpnc=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
Set-Cookie: webvpnlogin=1; secure
X-Transcend-
HTTP body chunked (-2)
< <?xml version="1.0" encoding="UTF-8"?>
< <auth id="main">
< <title>SSL VPN Service</title>
< <ca status="disabled" href="/
<
<
<
< <banner></banner>
< <message>Please enter your username and password.</message>
<
<
< <error id="15" param1="" param2="">Login failed.</error>
< <form method="post" action=
<
< <input type="text" name="username" label="Username:" />
< <input type="password" name="password" label="Password:" />
<
<
<
<
< <input type="submit" name="Login" value="Login" />
< <input type="reset" name="Clear" value="Clear" />
<
<
< </form>
< </auth>
<
Login failed.
Please enter your username and password.
Username:^Cfgets (stdin): Interrupted system call
:~$
Another oddity is that after issuing the command from cli, it does not give any prompt. Only after hitting another "enter", it asks for a username and continues, but never connects.
Have you tried connecting without the --passwd-on-stdin option? I think that option is why you are only being prompted for the username. And when you hit "enter", you are entering a blank password string. Or at least that's my best guess based on the info you've provided. Can you report back here if you're able to connect without that option?