Converting an LDAP value to lowercase (IdP v3)
Dave Perry
Dave.Perry at hull-college.ac.uk
Thu Jun 9 08:18:36 EDT 2016
Thanks Scott. I couldn't find any Transform documentation so looked at the ScriptedAttributes wiki page and adapted one of those examples.
I've persuade it to half work:
2016-06-09 13:15:05,298 - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition:247] - Attribute Definition 'google_principal': produced an attribute with the following values [StringAttributeValue{value=dave.perry at hull-college.ac.uk}]
But then it fails to attach this to the NameID:
2016-06-09 13:15:05,489 - DEBUG [org.opensaml.saml.common.profile.impl.ChainingNameIdentifierGenerator:106] - Trying to generate identifier with Format urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
2016-06-09 13:15:05,490 - DEBUG [net.shibboleth.idp.saml.nameid.impl.AttributeSourcedSAML2NameIDGenerator:183] - Checking for source attribute google_principal
2016-06-09 13:15:05,491 - INFO [net.shibboleth.idp.saml.nameid.impl.AttributeSourcedSAML2NameIDGenerator:213] - Attribute sources [google_principal] did not produce a usable identifier
2016-06-09 13:15:05,491 - DEBUG [org.opensaml.saml.saml2.profile.AbstractSAML2NameIDGenerator:92] - No identifier to use
2016-06-09 13:15:05,492 - DEBUG [org.opensaml.saml.saml2.profile.impl.AddNameIDToSubjects:341] - Profile Action AddNameIDToSubjects: Unable to generate a NameID, leaving empty
Any ideas what it doesn't like?
Thanks,
Dave
_________________________________________________
Dave Perry
eLearning Technologist, Hull College Group
Room L34 - Queens Gardens Library
Wilberforce Drive, Queen's Gardens, Hull, HU1 3DG
Extension 2230 / Direct Dial 01482 381930
* Need a fast reply? Try elearning at hull-college.ac.uk *
-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: 08 June 2016 16:37
To: Shib Users
Subject: Re: Converting an LDAP value to lowercase (IdP v3)
On 6/8/16, 5:04 AM, "users on behalf of Dave Perry" <users-bounces at shibboleth.net on behalf of Dave.Perry at hull-college.ac.uk> wrote:
>Referring to this post:
>http://shibboleth.1660669.n2.nabble.com/convert-uid-to-lowercase-td7619507.html
>
>How do you adapt the snippet Daniel provided to just work across one attribute?
That's for authentication, there's nothing I'm aware that would do this for attributes. I would imagine you would use a scripted attribute.
Some kind of Transform attribute definition would be straightforward of course, but there isn't one now that I know of.
-- Scott
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
**********************************************************************
This message is sent in confidence for the addressee
only. It may contain confidential or sensitive
information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised
recipients are requested to preserve this
confidentiality and to advise us of any errors in
transmission. Any views expressed in this message
are solely the views of the individual and do not
represent the views of the College. Nothing in this
message should be construed as creating a contract.
Hull College Group owns the email infrastructure, including the contents.
Hull College Group is committed to sustainability, please reflect before printing this email.
**********************************************************************
TEXT
More information about the users
mailing list