X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius-pysaml2.git;a=blobdiff_plain;f=etc%2Fpysaml_config.py;fp=etc%2Fpysaml_config.py;h=46c47421129b05fe3ee05e1e2b571bd69e626db4;hp=0000000000000000000000000000000000000000;hb=d4246e231c2ccef41467dda7bc3399560204df77;hpb=274fce3387186b9b0988451bdbb3ccf628155cc1 diff --git a/etc/pysaml_config.py b/etc/pysaml_config.py new file mode 100644 index 0000000..46c4742 --- /dev/null +++ b/etc/pysaml_config.py @@ -0,0 +1,51 @@ +from saml2.saml import NAME_FORMAT_URI +from saml2 import BINDING_PAOS + +# *** Change this line *** +BASE= "http://localhost:8088/" + +# Don't change this line +BASEDIR = "/usr/local/etc/moonshot/" + +CONFIG = { + "entityid" : BASE + "metadata.xml", + "description": "Radius SP", + "service": { + "sp":{ + "name" : "Radius SP", + "endpoints":{ + "assertion_consumer_service": [BASE, + (BASE+"ECP", BINDING_PAOS)], + }, + # ** These you might want to change ** +# "required_attributes": ["surname", "givenName", +# "eduPersonAffiliation"], +# "optional_attributes": ["title"], + } + }, + "debug" : 0, + "key_file" : BASEDIR + "pki/ssl.key", + "cert_file" : BASEDIR + "pki/ssl.cert", + "attribute_map_dir" : BASEDIR + "attributemaps", + "metadata" : { + "local": [BASEDIR + "metadata.xml"], + }, + # in case xmlsec1 isn't anywhere normal + "xmlsec_binary":"/opt/local/bin/xmlsec1", + "name_form": NAME_FORMAT_URI, + # -- below used by make_metadata -- + # ** These you probably want to change ** + "organization": { + "name": "Exempel AB", + "display_name": [("Exempel AB","se"),("Example Co.","en")], + "url":"http://www.example.com/roland", + }, + "contact_person": [{ + "given_name":"John", + "sur_name": "Smith", + "email_address": ["john.smith@example.com"], + "contact_type": "technical", + }, + ], +} +