X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius-pysaml2.git;a=blobdiff_plain;f=freeradius_ecp.py;fp=freeradius_ecp.py;h=85c969096c7a553f2a5348d3ed7e9b735cdd1e15;hp=d80714ba1b05604b5b4a453b3361445121a7a4fa;hb=e17b7a09b1da3e49eb2e1d98962799f06f4399c8;hpb=606726b074d10fd4b9396d529cabd30caf268f01 diff --git a/freeradius_ecp.py b/freeradius_ecp.py index d80714b..85c9690 100644 --- a/freeradius_ecp.py +++ b/freeradius_ecp.py @@ -140,10 +140,11 @@ def authentication_request(cls, ecp, idp_entity_id, destination, except AttributeError: headers = None - print >> sys.stderr, "Headers: %s" % headers + print >> sys.stderr, "Headers: {0:>s}".format(headers) # send the request and receive the response - response = ecp.phase2(request, acsu, idp_entity_id, headers) + response = ecp.phase2(request, acsu, idp_entity_id, headers, + destination) except Exception, exc: exception_trace("soap", exc, log) if log: @@ -270,7 +271,7 @@ def post_auth(authData): attr = "SAML-AAA-Assertion" #attr = "UKERNA-Attr-%d" % 132 #attr = "Vendor-%d-Attr-%d" % (25622, 132) - restup = (tuple([(attr, x) for x in eq_len_parts("%s" % _assertion, 248)])) + restup = (tuple([(attr, x) for x in eq_len_parts("%s" % _assertion, 247)])) return radiusd.RLM_MODULE_UPDATED, restup, None