openconnect do not read password from .txt file.

Ashraz Rashid ashraz.developer at gmail.com
Sun Nov 12 16:29:07 PST 2017


Dear openconnect team,



I have an issue for openconnect it do not connect with
–passwd-on-stdin. Basically I want to connect with bash command and
reading password from .txt file. Here my command that I am using

 type Pass.txt | openconnect.exe -v --passwd-on-stdin <Pass.txt
--user=Username --os=win https://server.com


also tried


openconnect -v --printcookie --dump-http-traffic  --no-xmlpost
--passwd-on-stdin <Pass.txt --os=win -u Username  server.com


Platform : (win 10) (openconnect version v7.08)


End of Result :


POST https://server.com/auth

Attempting to connect to server ip:port

Connected to ip:port

SSL negotiation with server

 Connected to HTTPS on server

 Got HTTP response: HTTP/1.1 200 OK

Set-Cookie: webvpncontext=; expires=Thu, 01 Jan 1970 22:00:00 GMT;
path=/; Secure

Content-Type: text/xml

Content-Length: 306

X-Transcend-Version: 1

HTTP body length:  (306)

XML POST enabled

Please enter your username.

POST https://server.com/auth

Got HTTP response: HTTP/1.1 200 OK

Set-Cookie: webvpncontext=eAgl06347RsfukD2978Fa5K5laO7sS/imPuRD6MZBNk=;
Max-Age=120; Secure

Content-Type: text/xml

Content-Length: 310

X-Transcend-Version: 1

HTTP body length:  (310)

Please enter your password.

POST https://server/auth

Got HTTP response: HTTP/1.1 200 OK

Set-Cookie: webvpncontext=eAgl06347RsfukD2978Fa5K5laO7sS/imPuRD6MZBNk=;
Max-Age=120; Secure

Content-Type: text/xml

Content-Length: 324

X-Transcend-Version: 1

HTTP body length:  (324)

Login failed.

Please enter your password.

Password:


Please help me to find out where I am in mistake..



More information about the openconnect-devel mailing list