-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
320 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| This file is an EXAMPLE configuration file. While the configuration | ||
| presented in this example file is semi-functional, it isn't very | ||
| interesting. It is here only as a starting point for your deployment | ||
| process. | ||
| Very few attribute definitions and data connectors are demonstrated, | ||
| and the data is derived statically from the logged-in username and a | ||
| static example connector. | ||
| Attribute-resolver-full.xml contains more examples of attributes, | ||
| encoders, and data connectors. Deployers should refer to the Shibboleth | ||
| documentation for a complete list of components and their options. | ||
| --> | ||
| <AttributeResolver | ||
| xmlns="urn:mace:shibboleth:2.0:resolver" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="urn:mace:shibboleth:2.0:resolver http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd"> | ||
|
|
||
|
|
||
| <!-- ========================================== --> | ||
| <!-- Attribute Definitions --> | ||
| <!-- ========================================== --> | ||
|
|
||
| <!-- | ||
| The EPPN is the "standard" federated username in higher ed. | ||
| For guidelines on the implementation of this attribute, refer | ||
| to the Shibboleth and eduPerson documentation. Above all, do | ||
| not expose a value for this attribute without considering the | ||
| long term implications. | ||
| --> | ||
| <AttributeDefinition id="eduPersonPrincipalName" xsi:type="Scoped" scope="%{idp.scope}" sourceAttributeID="uid"> | ||
| <Dependency ref="myLDAP" /> | ||
| <AttributeEncoder xsi:type="SAML1ScopedString" name="urn:mace:dir:attribute-def:eduPersonPrincipalName" encodeType="false" /> | ||
| <AttributeEncoder xsi:type="SAML2ScopedString" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" friendlyName="eduPersonPrincipalName" encodeType="false" /> | ||
| </AttributeDefinition> | ||
|
|
||
| <AttributeDefinition xsi:type="Simple" id="givenName" sourceAttributeID="givenName"> | ||
| <Dependency ref="myLDAP" /> | ||
| <AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:givenName" encodeType="false" /> | ||
| <AttributeEncoder xsi:type="SAML2String" name="urn:oid:2.5.4.42" friendlyName="givenName" encodeType="false" /> | ||
| </AttributeDefinition> | ||
|
|
||
| <AttributeDefinition xsi:type="Simple" id="surname" sourceAttributeID="sn"> | ||
| <Dependency ref="myLDAP" /> | ||
| <AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:sn" encodeType="false" /> | ||
| <AttributeEncoder xsi:type="SAML2String" name="urn:oid:2.5.4.4" friendlyName="sn" encodeType="false" /> | ||
| </AttributeDefinition> | ||
|
|
||
| <AttributeDefinition xsi:type="Simple" id="displayName" sourceAttributeID="displayName"> | ||
| <Dependency ref="myLDAP" /> | ||
| <AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:displayName" encodeType="false" /> | ||
| <AttributeEncoder xsi:type="SAML2String" name="urn:oid:2.16.840.1.113730.3.1.241" friendlyName="displayName" encodeType="false" /> | ||
| </AttributeDefinition> | ||
|
|
||
| <AttributeDefinition xsi:type="Simple" id="mail" sourceAttributeID="mail"> | ||
| <Dependency ref="myLDAP" /> | ||
| <AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:mail" encodeType="false" /> | ||
| <AttributeEncoder xsi:type="SAML2String" name="urn:oid:0.9.2342.19200300.100.1.3" friendlyName="mail" encodeType="false" /> | ||
| </AttributeDefinition> | ||
|
|
||
| <!-- The attribute definition below is designed to represent whether a particular user is FERPA_restricted for attribute release | ||
| Change the sourceAttributeID property to reflect the correct attribute name in the local LDAP --> | ||
| <AttributeDefinition xsi:type="Simple" id="isFERPAattr" sourceAttributeID="isFERPAattr"> | ||
| <Dependency ref="myLDAP" /> | ||
| <AttributeEncoder xsi:type="SAML2String" name="foo:attributes:isFERPAattr" friendlyName="isFERPAattr" encodeType="false" /> | ||
| </AttributeDefinition> | ||
|
|
||
| <!-- ========================================== --> | ||
| <!-- Data Connectors --> | ||
| <!-- ========================================== --> | ||
|
|
||
| <DataConnector id="staticAttributes" xsi:type="Static"> | ||
| <Attribute id="affiliation"> | ||
| <Value>member</Value> | ||
| </Attribute> | ||
| </DataConnector> | ||
|
|
||
| <DataConnector id="myLDAP" xsi:type="LDAPDirectory" | ||
| ldapURL="%{idp.attribute.resolver.LDAP.ldapURL}" | ||
| baseDN="%{idp.attribute.resolver.LDAP.baseDN}" | ||
| principal="%{idp.attribute.resolver.LDAP.bindDN}" | ||
| principalCredential="%{idp.attribute.resolver.LDAP.bindDNCredential}" | ||
| useStartTLS="%{idp.attribute.resolver.LDAP.useStartTLS:true}" | ||
| connectTimeout="%{idp.attribute.resolver.LDAP.connectTimeout}" | ||
| responseTimeout="%{idp.attribute.resolver.LDAP.responseTimeout}"> | ||
| <FilterTemplate> | ||
| <![CDATA[ | ||
| %{idp.attribute.resolver.LDAP.searchFilter} | ||
| ]]> | ||
| </FilterTemplate> | ||
| <ReturnAttributes>givenName sn displayName mail uid</ReturnAttributes> | ||
| </DataConnector> | ||
|
|
||
| </AttributeResolver> |
Oops, something went wrong.