use openconnect-gp's new mechanism for specifying an alternative-secret field for the login form submission, instead of 'passwd'

This was added in the `fun_with_cookie` branch. See:

	https://github.com/dlenski/openconnect/commits/fun_with_cookies
	https://github.com/dlenski/openconnect/pull/98#issuecomment-380923571
This commit is contained in:
Daniel Lenski
2018-04-13 13:15:15 -07:00
parent fac7013918
commit f7fe9b5529
+1 -1
View File
@@ -305,7 +305,7 @@ def main():
userauthcookie = paloalto_getconfig(conf, s, saml_username, prelogin_cookie) userauthcookie = paloalto_getconfig(conf, s, saml_username, prelogin_cookie)
log('portal-userauthcookie: {0}'.format(userauthcookie)) log('portal-userauthcookie: {0}'.format(userauthcookie))
cmd = '\nopenconnect --protocol=gp -u "{0}" --userauthcookie="{1}" {2}' cmd = '\necho "{1}" | openconnect --protocol=gp -u "{0}"/portal:portal-userauthcookie --passwd-on-stdin {2}'
print(cmd.format(saml_username, userauthcookie, conf.get('vpn_url'))) print(cmd.format(saml_username, userauthcookie, conf.get('vpn_url')))