If xmlsec binary not defined in configuration make an attempt to find the binary

This commit is contained in:
Roland Hedberg
2011-04-06 09:13:45 +02:00
parent 5e822f9c24
commit 5f11d54fc4

View File

@@ -14,6 +14,7 @@ from saml2 import root_logger
from saml2.attribute_converter import ac_factory
from saml2.assertion import Policy
from saml2.sigver import get_xmlsec_binary
COMMON_ARGS = ["entityid", "xmlsec_binary", "debug", "key_file", "cert_file",
"secret", "accepted_time_diff", "name",
@@ -159,8 +160,12 @@ class Config(object):
except KeyError:
pass
if "xmlsec_binary" not in self._attr:
self._attr[""]["xmlsec_binary"] = get_xmlsec_binary()
self.load_complex(cnf)
self.context = self.def_context
return self
def load_file(self, config_file):