Attribute Mapping Question
Bellina, Brendan
bbellina at ucla.edu
Thu Jan 21 12:20:06 EST 2016
You have an extra “u” in <Attribute name="uurn:mace:dir:attribute-def:id" id="id”>.
Could be the issue.
Regards,
Brendan Bellina
Identity Mgmt. Architect, IT Services, UCLA
✉ bbellina at ucla.edu ☏ +1 310 206 3131
From: users <users-bounces at shibboleth.net<mailto:users-bounces at shibboleth.net>> on behalf of Yasser Afifi <yasser at 3dissue.com<mailto:yasser at 3dissue.com>>
Reply-To: Shib Users <users at shibboleth.net<mailto:users at shibboleth.net>>
Date: Thursday, January 21, 2016 at 9:04 AM
To: "users at shibboleth.net<mailto:users at shibboleth.net>" <users at shibboleth.net<mailto:users at shibboleth.net>>
Subject: Attribute Mapping Question
Hello
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.
my attribute resolver in my idp is like this:
<resolver:AttributeDefinition id="id" xsi:type="ad:Simple" sourceAttributeID="id">
<resolver:Dependency ref="users" />
<resolver:AttributeEncoder xsi:type="enc:SAML1ScopedString" name="urn:mace:dir:attribute-def:id" encodeType="false" />
<resolver:AttributeEncoder xsi:type="enc:SAML2ScopedString" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" friendlyName="id" encodeType="false" />
</resolver:AttributeDefinition>
<!-- ========================================== -->
<!-- MY SQL Data Connector -->
<!-- ========================================== -->
<resolver:DataConnector id="users" xsi:type="dc:RelationalDatabase">
<dc:ApplicationManagedConnection
jdbcDriver="com.mysql.jdbc.Driver"
jdbcURL="jdbc:mysql://localhost:3306/mydb?characterEncoding=UTF-8"
jdbcUserName="root"
jdbcPassword= ""/>
<dc:QueryTemplate>
<![CDATA[
SELECT * FROM users WHERE id=1
]]>
</dc:QueryTemplate>
<dc:Column columnName="id" attributeID="id" />
<dc:ResultCache elementTimeToLive="PT10S"/>
</resolver:DataConnector>
and my attribute-map in my sp looks like:
<Attribute name="uurn:mace:dir:attribute-def:id" id="id">
</Attribute>
But for some reason i am not getting this id at the sp. When I check the session (using https://localhost/Shibboleth.sso/Session) there is nothing under attributes
Thanks a lot
Kindest Regards,
Yasser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160121/008c23ea/attachment.html>
More information about the users
mailing list