Dynamic figuring out where xmlsec is.

This commit is contained in:
Roland Hedberg 2012-12-16 10:11:31 +01:00
parent 4dd2ff4690
commit f265c3b421
12 changed files with 36 additions and 26 deletions

View File

@ -3,9 +3,10 @@ from saml2 import BINDING_SOAP, BINDING_HTTP_REDIRECT, NAME_FORMAT_URI
BASE = "http://localhost:8089/"
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG={
"service":{

View File

@ -3,9 +3,10 @@ from saml2.saml import NAMEID_FORMAT_PERSISTENT
from saml2.saml import NAME_FORMAT_URI
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
BASE = "http://localhost:8088"

View File

@ -3,10 +3,10 @@ from saml2.saml import NAMEID_FORMAT_PERSISTENT
from saml2.saml import NAME_FORMAT_URI
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG = {
"entityid" : "urn:mace:example.com:saml:roland:idp",

View File

@ -3,9 +3,10 @@ from saml2.saml import NAMEID_FORMAT_PERSISTENT
from saml2.saml import NAME_FORMAT_URI
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG={
"entityid" : "urn:mace:example.com:saml:roland:idp",

View File

@ -7,10 +7,10 @@ from saml2.saml import NAME_FORMAT_URI
BASE = "http://localhost:8088/"
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG = {
"entityid" : "urn:mace:example.com:saml:roland:idp",

View File

@ -4,9 +4,10 @@ from saml2.saml import NAME_FORMAT_URI
BASE = "http://localhost:8089/"
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG = {
"entityid" : "urn:mace:example.com:saml:roland:idpr",

View File

@ -1,7 +1,8 @@
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG = {

View File

@ -1,7 +1,8 @@
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG = {
"entityid" : "urn:mace:example.com:saml:roland:sp",

View File

@ -1,9 +1,10 @@
__author__ = 'rolandh'
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG={
"entityid" : "urn:mace:example.com:saml:roland:sp",

View File

@ -1,7 +1,8 @@
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG = {
"entityid" : "urn:mace:example.com:saml:roland:sp",

View File

@ -1,7 +1,8 @@
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
CONFIG = {
"entityid" : "urn:mace:example.com:saml:roland:sp",

View File

@ -3,9 +3,10 @@ from saml2.saml import NAMEID_FORMAT_PERSISTENT
from saml2.saml import NAME_FORMAT_URI
try:
from xmlsec_location import xmlsec_path
from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1'
xmlsec_path = '/usr/bin/xmlsec1'
HOME = "http://lingon.catalogix.se:8087/"
CONFIG = {