- attribute_service = CLIENT.config.attribute_services(ecp_config.IDP_ENTITYID)
- location = attribute_service[0].location
+ sso_service = CLIENT.config.single_sign_on_services(config.IDP_ENTITYID,
+ saml2.BINDING_PAOS)
+ if not sso_service:
+ log(radiusd.L_DBG,
+ "Couldn't find an single sign on endpoint for: %s" % (
+ config.IDP_ENTITYID,))
+ return radiusd.RLM_MODULE_FAIL
+
+ location = sso_service[0]