mirror of
https://github.com/os-mnemo/pan-globalprotect-okta
synced 2026-07-31 07:44:38 +02:00
Set certificate automatically also in openconnect call, if one is set in gp-okta.conf for the requests-dance
This commit is contained in:
@@ -490,6 +490,8 @@ def main():
|
||||
cmd = conf.get('openconnect_cmd') or 'openconnect'
|
||||
cmd += ' --protocol=gp -u \'{0}\''
|
||||
cmd += ' --usergroup {1}'
|
||||
if conf.get('cert'):
|
||||
cmd += ' --certificate=\'{0}\''.format(conf.get('cert'))
|
||||
cmd += ' --passwd-on-stdin ' + conf.get('openconnect_args', '') + ' \'{2}\''
|
||||
cmd = cmd.format(username, cookie_type, conf.get('vpn_url'))
|
||||
gw = (conf.get('gateway') or '').strip()
|
||||
|
||||
Reference in New Issue
Block a user