[PATCH] Add hidden password support for windows platform

Greg Toombs gtoombs at lakeheadu.ca
Fri Jul 4 07:25:49 PDT 2014


I already run a hacked-together 90% CLI, 10% GUI version in Windows.
For password entry it uses this script:

var ws = WScript.CreateObject('WScript.Shell'),
    cmd = 'powershell "' +
        '$c = (get-credential -credential ([Environment]::Username +
\'_our_corporate_VPN_username_suffix\')).GetNetworkCredential(); ' +
        'write-host $c.UserName; write-host $c.Password"',
    pipe = ws.Exec(cmd).StdOut, uname = pipe.ReadLine(), pwd = pipe.ReadLine(),
    eobj = ws.Exec('openconnect.exe --passwd-on-stdin -u "' + uname +
'" https://our-corporate-VPN-server.com')
eobj.StdIn.WriteLine(pwd)
for (;;) WScript.echo(eobj.StdOut.ReadLine())

On 4 July 2014 05:15, Nikos Mavrogiannopoulos
<n.mavrogiannopoulos at gmail.com> wrote:
> On Fri, Jul 4, 2014 at 11:04 AM, David Woodhouse <dwmw2 at infradead.org> wrote:
>> I'd still like to see a GUI version for Windows though; if you can
>> invoke the DLL from a scripting language surely that can't be
>> particularly hard to produce?
>
> Or a qt front-end which will be applicable to both windows and macosx
> (or anything else qt runs on).
>
> regards,
> Nikos
>
> _______________________________________________
> openconnect-devel mailing list
> openconnect-devel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/openconnect-devel



More information about the openconnect-devel mailing list