Just guessing here, but you may be seeing a character set issue.  Java 
internally uses UTF-16 I believe.  The ldap data may be coming back in 
UTF-8 or some extended ascii character set depending on your ldap server 
config, OS env variables, etc...

Just to be explicit, you might need to use getBytes("UTF8") or some 
variation instead.

https://docs.oracle.com/javase/tutorial/i18n/text/string.html

-W


On Thursday, February 1, 2018 at 8:04:56 PM UTC-6, dfisher wrote:
>
> On Wed, Jan 31, 2018 at 9:01 PM, Satnam Singh Sarai <[email protected] 
> <javascript:>> wrote:
>
>> We are trying to upgrade cas from 4.2 to 5.2 and we are having issues 
>> with guid attribute.   It is not in string format.   How can we convert 
>> this to string format..   name, email is in string format.
>>
>
> Did you try this property?
>
> cas.authn.ldap[0].searchEntryHandlers[0].type=OBJECT_GUID
>
> --Daniel Fisher
>  
>

-- 
- 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/f87b7927-cabd-43e1-883f-4b18cbb6060a%40apereo.org.

Reply via email to