username cas in CAS

68 views
Skip to first unread message

Jennifer LaVoie

unread,
Dec 19, 2018, 11:19:38 AM12/19/18
to CAS Community
Hello Everyone

We have 1 app that wants the username returned in UPPERCASE.  We have the attribute set to pull SamAccountName and in AD, that is UPPER CASE...but when I log into CAS with lower case, it is passing my username to the app in lower case...when I log in as upper case, it passes to the app in upper case...how can I fix this?

Thank you
Jen

Tom O'Neill

unread,
Dec 19, 2018, 11:48:10 AM12/19/18
to cas-...@apereo.org

Jen,

 

You need something like this in the service provider JSON:

 

"usernameAttributeProvider" : {

    "@class" : "org.apereo.cas.services.DefaultRegisteredServiceUsernameProvider",

    "canonicalizationMode" : "UPPER"

  }

 

The canonicalizationMode: “UPPER” should do the trick.

 

Thanks,

 

Tom

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/15b14998-d661-443e-a784-7e9ce61b4120%40apereo.org.

Richard Frovarp

unread,
Dec 19, 2018, 11:51:24 AM12/19/18
to cas-...@apereo.org
That will take care of it for the service, which will solve your problem here. However, the case of the username matches the case that the user entered it in at that time. So if you have applications storing information based off of the username attribute, and they are using a case sensitive way of looking them up in say Oracle (which is case sensitive), they are brittle. Those applications are dependent on the user entering their username in with matching case each time. You can address that by globally setting some sort of consistency across CAS. Of course any application in the current brittle mode will have problems, but it's best to address them early. I've been bit by this in the past. You can use the piece below to address differences in services. Either way, they shouldn't be subject to the user's casing at that instance.

Jennifer LaVoie

unread,
Dec 19, 2018, 12:02:57 PM12/19/18
to cas-...@apereo.org
worked perfectly!!!!

thank you so much!

Jen



--
"Confusion is a word we have invented for an order which is not understood."  ~Henry Miller

Jennifer LaVoie

unread,
Dec 19, 2018, 12:04:29 PM12/19/18
to cas-...@apereo.org
Hi Richard

We actually addressed this in our old version of CAS by changing our usernames in AD to be UPPER CASE.  All the other allucian apps work...it was just this particular one.  But now that is also working...

it's a bit maddening to be sure.

Jen

Richard Frovarp

unread,
Dec 19, 2018, 12:09:58 PM12/19/18
to cas-...@apereo.org
No, changing it in AD will not fix it. The username attribute matches the case provided by the user, unless you change it with CAS config. The cn, sAMAccount name and similar will follow what is returned by AD. The problem you were seeing with it changing case as you did, affects the username attribute to all services by default. So either those services are using something that is being returned as an attribute from AD, are doing the fixup on their own, don't really need a particular case, or the service definition is remapping what the username attribute is.

Jennifer LaVoie

unread,
Dec 19, 2018, 12:13:04 PM12/19/18
to cas-...@apereo.org
Actually, it did fix it for us in our previous version.  The gobumap table in Banner AND the AD SamAccountName had either be both lower or both upper.  

In our new cas version, all other allucian products work even though we made no changes in their .json service files.  This one app was the only problem, and it's now fixed.

I swear, I am not lying  :)

David Curry

unread,
Dec 19, 2018, 1:13:53 PM12/19/18
to cas-...@apereo.org
"Ellucian" - from the Latin for "software crap-fest" :-)

--

DAVID A. CURRY, CISSP
DIRECTOR OF INFORMATION SECURITY
THE NEW SCHOOL  INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728david...@newschool.edu




Jennifer LaVoie

unread,
Dec 19, 2018, 1:21:43 PM12/19/18
to cas-...@apereo.org
That is totally the translation!!

Reply all
Reply to author
Forward
0 new messages