mirror of
https://github.com/os-mnemo/pan-globalprotect-okta
synced 2026-07-31 07:44:38 +02:00
Some portals seem not to return root-ca entries, detect that and just continue
This commit is contained in:
+3
-1
@@ -478,7 +478,9 @@ def paloalto_getconfig(conf, s, saml_username, prelogin_cookie):
|
||||
if len(portal_userauthcookie) == 0:
|
||||
err('empty portal_userauthcookie')
|
||||
gateway = x.find('.//gateways//entry').get('name') # FIXME: this just grabs the very first, probably not what you want
|
||||
for entry in x.find('.//root-ca'):
|
||||
xtmp = x.find('.//root-ca')
|
||||
if xtmp is not None:
|
||||
for entry in xtmp:
|
||||
cert = entry.find('.//cert').text
|
||||
conf['openconnect_certs'].write(to_b(cert))
|
||||
conf['openconnect_certs'].flush()
|
||||
|
||||
Reference in New Issue
Block a user