change case to Title case in IdP

Peter Schober peter.schober at univie.ac.at
Fri Jun 1 07:57:12 EDT 2018


* Lalith Jayaweera <ljayaweera at gmail.com> [2018-05-29 07:27]:
> Currently we got the user name stored in Upper case in the source system
> (e.g. LDAP)

That's where you'd need to fix it, in the source system.

> We want to change that into title case in the attribute resolver and
> pass it to SPs

You can't. There's no algorithm in the world that can get the case
correct in all, well, cases. There are too many cultural and regional
conventions involved (MacBla, Macbla, Mc Bla, De La Foo, De la Foo,
van der Foo, Van Foo, etc.pp.) -- ignoring the case (ha!) or non-latin
script completely for now -- and people are somewhat picky when it
comes to messing up their names.
(They're probably used to the specific messing up you've done so far
in ALL CAPS as they realize that's not how the name is supposed to be
spelled.)

So save yourself that trouble of implementing a "quick fix" downstream
that doesn't in fact fix anything, and start recording case properly
at the source systems.

-peter


More information about the users mailing list