<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Hi,</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">I am in charge of replacing our almost ten years old IDP, and I am a bit lost on some points (neither a Shibboleth expert nor having up-to-date Java skills anymore).</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">I am using a multistage Docker build, so I can experiment at will.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">As recommended in updating instructions, I installed IDP3.4.9 over a clone of our running instance, then tried to remove all warnings and install the latest IDP4 over it.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Right now, I have a running IDP4 but I have doubts about attributes resolution configuration.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">On the legacy instance, attributes were defined this way :</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"><resolver:AttributeDefinition xsi:type="ad:Simple" id="mail" sourceAttributeID="mail"><br /><resolver:Dependency ref="myLDAP" /><br /><resolver:AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:mail" /><br /><resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:0.9.2342.19200300.100.1.3" friendlyName="mail" /><br /></resolver:AttributeDefinition></div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">This syntax was not compliant with 3.4.9 (lots of warnings about NameSpaces) and after trials and errors, I came to :</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"><AttributeDefinition xsi:type="Simple" id="mail"><br /><InputDataConnector ref="myLDAP" attributeNames="mail"/><br /><AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:mail" /><br /><AttributeEncoder xsi:type="SAML2String" name="urn:oid:0.9.2342.19200300.100.1.3" friendlyName="mail" /><br /></AttributeDefinition></div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Even if it's not easy to find recent configuration examples, I also found sources suggesting :</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"><AttributeDefinition xsi:type="Simple" id="mail"><br /><InputDataConnector ref="myLDAP" attributeNames="mail"/><br /><AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:mail" /><br /><AttributeEncoder xsi:type="SAML2String" encodeType="false" name="mail" friendlyName="mail"/><br /></AttributeDefinition></div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">or</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"><AttributeDefinition xsi:type="Simple" id="mail"><br /><InputDataConnector ref="myLDAP" attributeNames="mail"/><br /></AttributeDefinition></div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">When I checked with "aacli", I get a different output from IDP3 and IDP4.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">IDP3_LEGACY:</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">{<br />"name": "mail",<br />"values": [<br />"StringAttributeValue{value=test.user@my.domain}" ]<br />}, </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">IDP_3.4.9 (with any of the last two syntaxes):</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">{<br />"name": "mail",<br />"values": [<br />"StringAttributeValue{value=test.user@my.domain}" ]<br />},</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">IDP4 (with any of the last two syntaxes) :</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">{<br />"name": "mail",<br />"values": [<br />"test.user@my.domain"<br />]<br />},</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Is it an expected result ?</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Do I take a risk if I choose the less verbose syntax (without any AttributeEncoder) or are there differences I can't see with "aacli" ?</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Regards</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;"> </div>
<br/><hr>FreeMail powered by <a href="https://mail.fr" target="_blank">mail.fr</a>