Issue with releasing eduPersonPrincipalName to Specific SP

Brent Putman putmanb at georgetown.edu
Wed Apr 26 18:05:13 EDT 2017



On 4/26/17 5:23 PM, Cantor, Scott wrote:
>>
>> Well, actually it doesn't.  There is no AttributeStatement there either. See below.
> His original JSON output does, though,

Ah, I totally missed that.  So the ePPN is fundamentally getting resolved.


>  and it raises more confusion because that looks like the output of the V3 AACLI (the JSON format), but the command line includes options specific to V2, so without more information I don't know what's going on.

It's been awhile, I had to review the v3 aacli.  Assuming you're
talking about the --configDir arg: The presence of that invalid arg
doesn't seem to cause the v3 aacli to barf.  It just ignores it.  So I
think that's just user (semi)error, and he's probably using v3
exclusively here. Red herring.


>
> In any case, in V3 the JSON output is essentially going to tell you what raw data *would* be in the SAML if you have the proper attribute encoders in place, and what was posted seemed to me to have the appropriate encoders.

Since the JSON says the attribute is fundamentally getting resolved and
released, but the SAML doesn't have it, doesn't that in fact imply a
problem with the SAML 2 encoder?  The OP has:


<resolver:AttributeDefinition xsi:type="ad:Simple"
id="eduPersonPrincipalName" sourceAttributeID="userPrincipalName">
    <resolver:Dependency ref="myLDAP" />
    <resolver:Dependency ref="myLDAP2" />
    <resolver:AttributeEncoder xsi:type="enc:SAML1ScopedString"
name="urn:mace:dir:attribute-def:eduPersonPrincipalName"
encodeType="false" />
    <resolver:AttributeEncoder xsi:type="enc:SAML2ScopedString"
name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
friendlyName="eduPersonPrincipalName" encodeType="false" />
</resolver:AttributeDefinition>



Looking at my test system, based on the example config we ship, I have
the following, which works:

<resolver:AttributeDefinition xsi:type="ad:Scoped"
id="eduPersonPrincipalName" scope="%{idp.scope}" sourceAttributeID="uid">
    <resolver:Dependency ref="myLDAP" />
    <resolver:AttributeEncoder xsi:type="enc:SAML1ScopedString"
name="urn:mace:dir:attribute-def:eduPersonPrincipalName" />
    <resolver:AttributeEncoder xsi:type="enc:SAML2ScopedString"
name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
friendlyName="eduPersonPrincipalName" />
</resolver:AttributeDefinition>


So does an encoder of SAML2ScopedString work with an AttributeDefintion
of type Simple, as the OP has it?  Maybe that's the problem.  If he
wants to base on 'userPrincipalName' (from AD, etc), which is already a
scoped string, maybe he needs to switch encoder to type SAML2String?  I
always forget how the scoped vs non-scoped stuff works.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170426/d88f9248/attachment.html>


More information about the users mailing list