<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: problem with SSO and UNICODE username in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-sso-and-unicode-username/m-p/227279#M180409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And 5 years later here it come's the first reply to this post… ouu yeahh&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately is not to post the solution by the way &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I run to similar problem, after making Alfresco 4.2.c work with a custom external authentication. This custom authenticator is based on the SSOAuthenticationFilter that comes out-of-the-box with Share. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point, after doing some processing to my custom header (which is handled by an external system) I set this two session attributes when a valid request comes in&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;session.setAttribute(UserFactory.SESSION_ATTRIBUTE_KEY_USER_ID, userName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;session.setAttribute(UserFactory.SESSION_ATTRIBUTE_EXTERNAL_AUTH, Boolean.TRUE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So everyone else in the authentication chain is aware that the session is valid, that's fine, works as spected for my user registry except for those wiht non-ascii characters in the username&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for example &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;iñaki &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is created as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i?aki&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I tried &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;session.setAttribute(UserFactory.SESSION_ATTRIBUTE_KEY_USER_ID, URLEnconder.endode(userName));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which is deprecated, should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;session.setAttribute(UserFactory.SESSION_ATTRIBUTE_KEY_USER_ID, URLEnconder.endode(userName, "UTF-8"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but then iñaki is created as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i\u00f1aki&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This looks fine, but is not. The user home folder is created as i_u00f1aki&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try to create a user with the Share Admin Console, I can create iñaki user, correctly stored like "iñaki" in the Alfresco Database, but that is happening in a diferent process, webscript talking to the repo to create the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead my user is created thanks to "createMissingPeople" boolean with says, ok the user is valid and doesn't exist, let's create it for you, which is finally handled by the PesonService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what is Alfresco repo specting in that session attibute to create "iñaki" username?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 10:44:05 GMT</pubDate>
    <dc:creator>mikel_asla1</dc:creator>
    <dc:date>2014-03-24T10:44:05Z</dc:date>
    <item>
      <title>problem with SSO and UNICODE username</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-sso-and-unicode-username/m-p/227278#M180408</link>
      <description>Hi guys,i'm using alfresco 3c.I succesfully configured alfresco with SSO login chaining ntlm and ldap.It works for every user but one that is like usernameù. Th problem is the character ù .I investigated and the problem id in the class NTLMAuthenticationComponentImpl.At the line : authSess.doSession</description>
      <pubDate>Fri, 30 Oct 2009 18:11:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-sso-and-unicode-username/m-p/227278#M180408</guid>
      <dc:creator>inspiron82</dc:creator>
      <dc:date>2009-10-30T18:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with SSO and UNICODE username</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-sso-and-unicode-username/m-p/227279#M180409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And 5 years later here it come's the first reply to this post… ouu yeahh&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately is not to post the solution by the way &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I run to similar problem, after making Alfresco 4.2.c work with a custom external authentication. This custom authenticator is based on the SSOAuthenticationFilter that comes out-of-the-box with Share. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point, after doing some processing to my custom header (which is handled by an external system) I set this two session attributes when a valid request comes in&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;session.setAttribute(UserFactory.SESSION_ATTRIBUTE_KEY_USER_ID, userName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;session.setAttribute(UserFactory.SESSION_ATTRIBUTE_EXTERNAL_AUTH, Boolean.TRUE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So everyone else in the authentication chain is aware that the session is valid, that's fine, works as spected for my user registry except for those wiht non-ascii characters in the username&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for example &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;iñaki &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is created as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i?aki&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I tried &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;session.setAttribute(UserFactory.SESSION_ATTRIBUTE_KEY_USER_ID, URLEnconder.endode(userName));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which is deprecated, should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;session.setAttribute(UserFactory.SESSION_ATTRIBUTE_KEY_USER_ID, URLEnconder.endode(userName, "UTF-8"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but then iñaki is created as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i\u00f1aki&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This looks fine, but is not. The user home folder is created as i_u00f1aki&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try to create a user with the Share Admin Console, I can create iñaki user, correctly stored like "iñaki" in the Alfresco Database, but that is happening in a diferent process, webscript talking to the repo to create the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead my user is created thanks to "createMissingPeople" boolean with says, ok the user is valid and doesn't exist, let's create it for you, which is finally handled by the PesonService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what is Alfresco repo specting in that session attibute to create "iñaki" username?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 10:44:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-sso-and-unicode-username/m-p/227279#M180409</guid>
      <dc:creator>mikel_asla1</dc:creator>
      <dc:date>2014-03-24T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with SSO and UNICODE username</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-sso-and-unicode-username/m-p/227280#M180410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a Java String, it should not need "encoding".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it doesn't work then please raise an issue in JIRA with as much information as possible. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 17:44:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-sso-and-unicode-username/m-p/227280#M180410</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-03-24T17:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with SSO and UNICODE username</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-sso-and-unicode-username/m-p/227281#M180411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;url&amp;gt;&lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-20904" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-20904&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:21:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-sso-and-unicode-username/m-p/227281#M180411</guid>
      <dc:creator>mikel_asla1</dc:creator>
      <dc:date>2014-03-26T11:21:08Z</dc:date>
    </item>
  </channel>
</rss>

