Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

In /etc/freeradius/sites-enabled/default, find the post-auth section. At the top, add the following

 if (Realm == '[your realm here]') {
        update reply {
            SAML-AAA-Assertion = '<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" IssueInstant="2011-03-19T08:30:00Z" ID="foo" Version="2.0">'
            SAML-AAA-Assertion += '<saml:Issuer></saml:Issuer>'
            SAML-AAA-Assertion += '<saml:AttributeStatement>'
            SAML-AAA-Assertion += '<saml:Attribute NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" Name="urn:oid:"><saml:AttributeValue>moonshot</saml:AttributeValue></saml:Attribute>'
            SAML-AAA-Assertion += '</saml:AttributeStatement>'
            SAML-AAA-Assertion += '</saml:Assertion>'
  • No labels