Thanks Phil! This is helpful.
Three follow up questions.
- For shib users, is the username fixed upon first login, or does it change if the eppn (string before "@")/uid changes, as with other profile attributes when a user logins in subsequently?
The second/third are more of Shibboleth-specific questions, if it's alright to ask here, just in case anyone knows.
- For shibboleth2.xml, some may use AttributeResolver to create/transform to create new/replace variables[1].
For example, some users already have givenName and sn, whereas for other users it is null. All have displayName. In this case, will users with non-null givenName and sn have their givenName and sn replaced with the <AttributeResolver> defined below? The Shib docs isn't quite clear on this.
<AttributeResolver type="Transform" source="displayName">
<Regex match="(.+) (.+)" dest="givenName">$1</Regex>
<Regex match="(.+) (.+)" dest="sn">$2</Regex>
</AttributeResolver>
- For multiple <AttributeResolver> elements specified, are they transformed sequentially, or only one element is used in transforming the attribute (with the first or last taking precedence?). The Shib docs isn't quite clear on this.
e.g.,
<AttributeResolver type="Template" sources="givenName sn" dest="displayName">
<Template>$givenName $sn</Template>
</AttributeResolver>
<AttributeResolver type="Transform" source="displayName">
<Regex match="^(.+) (.+)$" dest="givenName">$1</Regex>
<Regex match="^(.+) (.+)$" dest="sn">$2</Regex>
<Regex match="^(.+) (.+)$">$2, $1</Regex>
</AttributeResolver>
Should probably do a test on the last two cases. But if anyone knows offhand it would be helpful
Kind regards,
Eunice