<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 15px; font-family: 'Times New Roman', sans-serif;">
<div>
<div>
<div>You have an extra “u” in <Attribute name="uurn:mace:dir:attribute-def:id" id="id”>.</div>
<div><br>
</div>
<div>Could be the issue.</div>
<div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Brendan Bellina</div>
<div>Identity Mgmt. Architect, IT Services, UCLA</div>
<div><span style="font-family: -webkit-standard; font-size: medium;">✉ </span>bbellina@ucla.edu   <span style="font-family: -webkit-standard; font-size: medium;">☏ +1 310 206 3131</span></div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>users <<a href="mailto:users-bounces@shibboleth.net">users-bounces@shibboleth.net</a>> on behalf of Yasser Afifi <<a href="mailto:yasser@3dissue.com">yasser@3dissue.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>Shib Users <<a href="mailto:users@shibboleth.net">users@shibboleth.net</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, January 21, 2016 at 9:04 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:users@shibboleth.net">users@shibboleth.net</a>" <<a href="mailto:users@shibboleth.net">users@shibboleth.net</a>><br>
<span style="font-weight:bold">Subject: </span>Attribute Mapping Question<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr"><br>
<div>Hello
<div><br>
</div>
<div>I am testing my new idp with the sp. I am sending only one attribute from idp to the sp. The attribute is brought from mysql database.</div>
<div><br>
</div>
<div>my attribute resolver in my idp is like this:</div>
</div>
<div>
<div><br>
</div>
<div>    <resolver:AttributeDefinition id="id" xsi:type="ad:Simple" sourceAttributeID="id"></div>
<div><span class="" style="white-space:pre"></span>       <resolver:Dependency ref="users" /></div>
<div>        <resolver:AttributeEncoder xsi:type="enc:SAML1ScopedString" name="urn:mace:dir:attribute-def:id" encodeType="false" /></div>
<div>        <resolver:AttributeEncoder xsi:type="enc:SAML2ScopedString" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" friendlyName="id" encodeType="false" /></div>
<div>    </resolver:AttributeDefinition></div>
<div><span class="" style="white-space:pre"></span></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>    <!-- ========================================== --></div>
<div>    <!--      MY SQL Data Connector                   --></div>
<div>    <!-- ========================================== --></div>
<div><resolver:DataConnector id="users" xsi:type="dc:RelationalDatabase"></div>
<div>   <dc:ApplicationManagedConnection </div>
<div>       jdbcDriver="com.mysql.jdbc.Driver"</div>
<div><span class="" style="white-space:pre"></span>  jdbcURL="jdbc:mysql://localhost:3306/mydb?characterEncoding=UTF-8"</div>
<div>       jdbcUserName="root" </div>
<div><span class="" style="white-space:pre"></span>  jdbcPassword= ""/></div>
<div>   <dc:QueryTemplate></div>
<div>       <![CDATA[</div>
<div>         SELECT * FROM users WHERE id=1</div>
<div>       ]]></div>
<div>   </dc:QueryTemplate></div>
<div> </div>
<div>  <dc:Column columnName="id" attributeID="id" /></div>
<div>     </div>
<div>   <dc:ResultCache elementTimeToLive="PT10S"/></div>
<div></resolver:DataConnector></div>
<div>  </div>
</div>
<div>and my attribute-map in my sp looks like:</div>
<div><br>
</div>
<div>
<div>    <Attribute name="uurn:mace:dir:attribute-def:id" id="id"></div>
<div>    </Attribute></div>
<div><br>
</div>
</div>
<div>But for some reason i am not getting this id at the sp. When I check the session (using
<a href="https://localhost/Shibboleth.sso/Session">https://localhost/Shibboleth.sso/Session</a>) there is nothing under attributes</div>
<div><br>
</div>
<div>Thanks a lot</div>
<div>Kindest Regards,</div>
<div>Yasser</div>
</div>
</div>
</div>
</span>
</body>
</html>