mirror of
https://github.com/os-mnemo/pan-globalprotect-okta
synced 2026-07-31 15:54:36 +02:00
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:
+1
-1
@@ -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')))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user