https://apereo.github.io/2017/10/13/520rc4-release/#minors
See #7. > From: "Ian Wright" <[email protected]> > To: "CAS Community" <[email protected]> > Cc: "Misagh Moayyed" <[email protected]> > Sent: Friday, October 6, 2017 1:07:19 AM > Subject: Re: [cas-user] 4.1 -> 5.2 upgrade > PrincipalAttributeRegisteredServiceUsernameProvider > 5.2.0-RC3 > Thanks > On Thursday, 5 October 2017 17:44:14 UTC+1, Misagh Moayyed wrote: >> What version of 5.2? >>> From: "Ian Wright" < [email protected] > >>> To: "CAS Community" < [email protected] > >>> Sent: Thursday, October 5, 2017 4:33:59 AM >>> Subject: [cas-user] 4.1 -> 5.2 upgrade >>> PrincipalAttributeRegisteredServiceUsernameProvider >>> Working on an upgrade I'm having a problem where the non-default principal >>> name >>> is enclosed in square brackets i.e. with 4.1 I get [email protected] , with >>> 5.2 >>> [ [email protected] ] >>> For historical reasons I can't change the value of >>> cas.authn.ldap[0].principalAttributeId as not all services can use the same >>> value >>> In my 4.1 CAS configuration I have the following in >>> deployerConfigContext.xml : >>> <property name="usernameAttributeProvider"> >>> <bean >>> class="org.jasig.cas.services.PrincipalAttributeRegisteredServiceUsernameProvider" >>> c:usernameAttribute="mail" /> >>> </property> >>> Using 5.2 I tried: >>> "@class": >>> "org.apereo.cas.services.PrincipalAttributeRegisteredServiceUsernameProvider", >>> "canonicalizationMode": "NONE", >>> "encryptUsername": false, >>> "usernameAttribute": "mail" >>> and (despite not being able to work out how to do this in the cas-management >>> app) >>> "@class" : >>> "org.apereo.cas.services.GroovyRegisteredServiceUsernameProvider", >>> "groovyScript" : "groovy { return attributes['mail'] }", >>> Both give <cas:user> value in [] >>> Thanks for any suggestions as to how I can get rid of the brackets >>> -- >>> - 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 [email protected] . >>> To view this discussion on the web visit >>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/db792d2d-3634-413f-9e86-d17e5339389e%40apereo.org >>> . >> -- >> --Misagh > This email has been scanned for spam and viruses by Proofpoint Essentials. > Click > here to report this email as spam. -- --Misagh -- - 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/1980751750.4565315.1507293134045.JavaMail.zimbra%40unicon.net.
