By: Thomas Maerz user 18 Feb 2016 at 11:20 a.m. CST

4 Responses
Thomas Maerz gravatar
I need to map some source attributes to different fields as per the requirements of an SP (wrike) that I am trying to integrate with. The SP requirements are: firstName; lastName; NameID; - User First Name attribute should be sent as firstName - Last Name as lastName - the subject (Name ID) should be the Email address From my LDAP, I am syncing attributes mail, sn, and givenName with cache refresh successfully. However, when I try to add Source attribute to destination attribute mappings on the cache refresh page, those attributes don't seem to be showing up when I look at the manage people page or when I connect to the gluu LDAP server. I also don't see them in the list of attributes to release to the SP from the idP in the SAML Trust Relationship. Am I doing something wrong? I have the following Source attribute to destination attribute mappings defined: - samaccountname --> uid - mail --> NameID - givenName --> firstName - sn --> lastName

By Mohib Zico Account Admin 21 Feb 2016 at 11:19 a.m. CST

Mohib Zico gravatar
>> mail --> NameID You can't create a nameID and map it like this way. Check out the Shibboleth wiki on how to create a NameID. >> However, when I try to add Source attribute to destination attribute mappings on the cache refresh page, those attributes don't seem to be showing up I can see them in attributes list. Please check out the attached screenshot.

By Thomas Maerz user 25 Feb 2016 at 11:06 a.m. CST

Thomas Maerz gravatar
Reading the documentation for generating a nameID, I am supposed to edit the file saml-nameid.xml in shibboleth2/idp folder, but I cannot find any saml-nameid.xml on the gluu server itself or within service gluu-server24 login. Do I need to create the file? Should it be within the chroot environment or not? Also, the SP is requesting a nameID, but does not specify transientID or persistentID, and when I look at attributes I can release in the GUI, I see transientID and persistentID, but not nameID. Will transientID and persistentID return as nameID to the SP?

By Mohib Zico Account Admin 26 Feb 2016 at 7:30 a.m. CST

Mohib Zico gravatar
>> Reading the documentation for generating a nameID, I am supposed to edit the file saml-nameid.xml in shibboleth2/idp folder, but I cannot find any saml-nameid.xml on the gluu server itself or within service gluu-server24 login. 'saml-nameid.xml'?! There is no file with this name in Gluu Server. You need to add nameID in 'attribute-resolver.xml' file. As Gluu Server loads configuration files from velocity template, so you need to add this nameID definition in velocity template first ( location: /opt/tomcat/conf/shibboleth/idp/ ). After adding configuration in VM template, restart tomcat; your new configuration will appear in main configuration files inside /opt/idp/conf/ We don't have any public doc on how to create NameID but Shibboleth has pretty nice [doc](https://wiki.shibboleth.net/confluence/display/SHIB2/IdPNameIdentifier) and it's almost same in Gluu Server as well.

By Thomas Maerz user 07 Apr 2016 at 12:03 a.m. CDT

Thomas Maerz gravatar
I have been extremely busy with other projects but I got a chance to swing back around to this tonight. I found the template files you're referencing and I followed the custom name identifier documentation here: https://wiki.shibboleth.net/confluence/display/SHIB2/IdPCustomNameIdentifier since my SP is requesting specifically that the attribute email be released as NameID. Does this look correct? attribute-resolver.xml.vm: <resolver:AttributeDefinition id="customId" xsi:type="Simple" sourceAttributeID="email" xmlns="urn:mace:shibboleth:2.0:resolver:ad"> <resolver:Dependency ref="DEFINITION_ID_1" /> <resolver:AttributeEncoder xsi:type="SAML1StringNameIdentifier" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" nameFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" /> <resolver:AttributeEncoder xsi:type="SAML2StringNameID" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" nameFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" /> attribute-filter.xml.vm: <AttributeFilterPolicy id="releaseCustomIdToPartner"> <PolicyRequirementRule xsi:type="basic:AttributeRequesterString" value="www.wrike.com" /> <AttributeRule attributeID="customId"> <PermitValueRule xsi:type="basic:ANY" /> </AttributeRule> </AttributeFilterPolicy> After I do this, should I see this CustomID to be released to the SP in the trust section of the GUI? I am not seeing it there.