make the error message more verbose in case a SAML request is missing in the response

This commit is contained in:
Tino Lange
2020-04-14 11:51:47 +02:00
parent 76a895d3ff
commit 8f628a9f78
+1 -1
View File
@@ -272,7 +272,7 @@ def paloalto_prelogin(conf, s, gateway=None):
if msg is not None: if msg is not None:
msg = msg.strip() msg = msg.strip()
else: else:
msg = 'Probably you need a certificate?' msg = 'Probably SAML is disabled at the portal? Or you need a certificate? Try another_dance=0 with some concrete gateway instead.'
err('did not find saml request. {0}'.format(msg)) err('did not find saml request. {0}'.format(msg))
if len(saml_req.text.strip()) == 0: if len(saml_req.text.strip()) == 0:
err('empty saml request') err('empty saml request')