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/" BASE = "http://localhost:8089/"
try: try:
from xmlsec_location import xmlsec_path from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError: except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1' xmlsec_path = '/usr/bin/xmlsec1'
CONFIG={ CONFIG={
"service":{ "service":{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,8 @@
try: try:
from xmlsec_location import xmlsec_path from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError: except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1' xmlsec_path = '/usr/bin/xmlsec1'
CONFIG = { CONFIG = {
"entityid" : "urn:mace:example.com:saml:roland:sp", "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 from saml2.saml import NAME_FORMAT_URI
try: try:
from xmlsec_location import xmlsec_path from saml2.sigver import get_xmlsec_binary
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
except ImportError: except ImportError:
xmlsec_path = '/opt/local/bin/xmlsec1' xmlsec_path = '/usr/bin/xmlsec1'
HOME = "http://lingon.catalogix.se:8087/" HOME = "http://lingon.catalogix.se:8087/"
CONFIG = { CONFIG = {