[ZendTo] SAML displayName attribute and Google

Didier METRAL d.metral at bmi-system.com
Thu Feb 25 16:24:27 GMT 2021


Thanks,

I just installed the last beta and it's working working as expected.

Didier Métral


Le jeu. 25 févr. 2021 à 16:22, Jules <Jules at zend.to> a écrit :

> Didier,
>
> After a few mistakes in 6.08-6, I've just released 6.08-7 which looks a
> lot nicer.
>
> Cheers,
> Jules.
>
> On Wed 24/02/21 14:29, Didier METRAL wrote:
>
> Thanks a lot.
> I'll wait for the next beta ;)
>
> Didier Métral
>
>
> Le mer. 24 févr. 2021 à 13:19, Jules <Jules at zend.to> a écrit :
>
>> Didier,
>>
>> I've made the syntax a little bit more clever, in that the spaces either
>> side of the "+" are optional, it will just ignore any whitespace either
>> side of any "+". And just like with the normal attribute values any text
>> that isn't a valid attribute name will just be inserted as is (like 'My
>> company' is in your example.
>>
>> So theoretically you could have
>>     'displayName' => 'fname + lname + (user)',
>> And it would show displayName to be 'Didier Metral (user)'.
>> Why you might want to do that, not a clue. And you probably don't want
>> to. But you can... :)
>>
>> I've just tested it, and my code appears to work nicely.
>> This will be in the next beta release for you.
>>
>> So then you'll be able to use
>>   'samlAttributesMap' => array(
>>     'mail' => 'mail',
>>     'uid' => 'uid',
>> *    'displayName' => 'fname+lname',*
>>     'organization' => 'My company'),
>> and it should work how you expect.
>>
>> Cheers,
>> Jules.
>>
>> On Wed 24/02/21 11:19, Didier METRAL wrote:
>>
>> Hi,
>>
>> In Google we must set attribute mapping so we can send the good name for
>> attribute.
>> Here is the mapping we set in Google :
>> [image: image.png]
>>
>> Here is the extract of the  preferences.php  file :
>>   'samlAttributesMap' => array(
>>     'mail' => 'mail',
>>     'uid' => 'uid',
>>     'displayName' => 'fname',
>>     'organization' => 'My company'),
>>
>> If we could use a syntaxe like " 'fname + lname'" it should be OK (must
>> have a space between fname and lname ;) )
>>
>> Regards,
>> --
>> Didier Métral
>>
>>
>> Le mer. 24 févr. 2021 à 11:03, Jules <Jules at zend.to> a écrit :
>>
>>> Hi Didier,
>>>
>>> Please can you send me exactly what your preferences.php setting for
>>> 'samlAttributesMap' looks like at the moment?
>>> I don't know what the Google attributes map would look like, so would
>>> like to see the syntax to ensure that whatever solution I end up with does
>>> actually work with Google!
>>>
>>> And what are the "right-hand-side" values in that map that would give
>>> you the first name and last name?
>>>
>>> I'm thinking of a syntax where you could put something like
>>> 'displayName' => 'http://schemas.microsoft.com/identity/claims/forename
>>> + http://schemas.microsoft.com/identity/claims/familyname',
>>> in the map. Then my code would concatenate the 2 with a single space in
>>> between.
>>>
>>> Would that work as a solution?
>>>
>>> Cheers,
>>> Jules.
>>>
>>> On Tue 23/02/21 15:06, Didier METRAL via ZendTo wrote:
>>>
>>> Hello,
>>>
>>> We just installed ZendTo in my company but we're facing a "problem" : We
>>> can't set displayName
>>> We are using Google for SAML authentification and Google can send user
>>> first name and last name but not in one attribute.
>>> The only attributes we can set in SamlAttributesMap are mail, uid
>>> displayName and Organization.
>>> Is there a way to use First Name and Last Name to generate displayName ?
>>>
>>> Regards,
>>>
>>> *Didier METRAL*
>>>
>>> _______________________________________________
>>> ZendTo mailing listZendTo at zend.tohttp://jul.es/mailman/listinfo/zendto
>>>
>>>
>>> Jules
>>>
>>> --
>>> Julian Field MEng CEng CITP MBCS MIEEE MACM
>>>
>>> 'Always do sober what you said you'd do drunk. That will teach you
>>>  to keep your mouth shut.' - Ernest Hemingway
>>> www.Zend.To
>>> Twitter: @JulesFM
>>>
>>>
>> Jules
>>
>> --
>> Julian Field MEng CEng CITP MBCS MIEEE MACM
>>
>> 'Is the Holocaust an aberration, or a reflection of who we really are?'
>>  - Holocaust Museum, Berlin
>> www.Zend.To
>> Twitter: @JulesFM
>>
>>
> Jules
>
> --
> Julian Field MEng CEng CITP MBCS MIEEE MACM
>
> 'Teach a man to reason, and he will think for a lifetime.' - Phil Plait
> www.Zend.To
> Twitter: @JulesFM
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20210225/46d324f3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 36568 bytes
Desc: not available
URL: <http://jul.es/pipermail/zendto/attachments/20210225/46d324f3/attachment-0001.png>


More information about the ZendTo mailing list