problem when xmlsec1 is not in system path

Bug #676469 reported by Gijs Molenaar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pySAML2
Fix Released
Medium
Lorenzo Gil Sanchez

Bug Description

get_xmlsec_binary() in saml2/sigver.py looks for xmlsec1 installed in the system path. This fails when xmlsec1 is installed in a different location. It would be nice if this is configurable in some way.

Revision history for this message
Lorenzo Gil Sanchez (lgs) wrote :

You can set the xmlsec1 path in the configuration dict used in pysaml2.

Something like this:

SAML_CONFIG = {
    'xmlsec_binary': '/usr/bin/xmlsec1',
    # more stuff
}

Changed in pysaml2:
importance: Undecided → Medium
status: New → Invalid
assignee: nobody → Lorenzo Gil Sanchez (lgs)
Revision history for this message
Gijs Molenaar (gijzelaar) wrote :

Yes, you can set this, but it is not used in all cases.

get_xmlsec_binary() in saml2/sigver.py looks for xmlsec1 installed in the system path. This function is called to set XMLSEC_BINARY in sigver.py, so if you include sigver.py it fails.

Changed in pysaml2:
status: Invalid → New
Revision history for this message
Roland Hedberg (roland-hedberg) wrote :

So I've checked in a change to saml2/sigver.py that prevents the loading of sigver.py to fail if xmlsec1 is not within the system path. I also added a argument to get_xmlsec_binary(), to allow you to search in non-system paths.

Changed in pysaml2:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.