<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi Jan,<br></div><div><br></div><div>first of all, it was not Java but Groovy, nevertheless, the syntax looks like Java.<br></div><div><br></div><div>Second, if you want to pass the fullName from midPoint without any transformation, just comment the whole <expression>..</expression> and fullName will be just copied. If your linux will accept such characters is another thing.<br></div><div><br></div><div>Third, I really recommend reading the <a href="https://evolveum.com/midpoint/midpoint-guide-about-practical-identity-management/">https://evolveum.com/midpoint/midpoint-guide-about-practical-identity-management/</a> midPoint book unless you have not read it yet. For most of the things you don't need to "modify Java code" in midPoint, but you have to "modify the expressions". Before that, you need to understand what you are modifying :-) And I hope the Book should help you.<br></div><div><br></div><div>If Groovy is not your favorite language, you can also use JavaScript or Python, but the vast majority of the samples is using Groovy code because... the samples are written by mostly Java developers of midPoint and us engineers who like Groovy much more than e.g. JavaScript :)<br></div><div><br></div><div>Best regards,<br></div><div>Ivan<br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Parttimaa Jan" <jan.parttimaa@myy.haaga-helia.fi><br><b>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>Sent: </b>Monday, November 26, 2018 6:03:19 PM<br><b>Subject: </b>Re: [midPoint] OpenLDAP - IdM and Scandinavian alphabets (ö,å,ä)<br><div><br></div><style style="display:none;" data-mce-style="display: none;"><!-- P {margin-top:0;margin-bottom:0;} --></style><div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr" data-mce-style="font-size: 12pt; color: #000000; font-family: Calibri, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;"><p style="margin-top:0;margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Hey,</p><p style="margin-top:0;margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="margin-top:0;margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">I just realize that the yellow line was Java code. But still problem is the same. What I have to delete/modify on that Java-code so it will not covert characters like Ä to A and Ö to O?</p><p style="margin-top:0;margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="margin-top:0;margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Best Regards,</p><p style="margin-top:0;margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Jan Parttimaa</p><p style="margin-top:0;margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><div id="Signature"><div id="divtagdefaultwrapper" dir="ltr" style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 12pt; background-color: #ffffff;"><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">Jan Parttimaa</span></i></span></p><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i></i></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">1602738,</span></i></span></p><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i></i></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">Tietojenkäsittelyn koulutusohjelma,</span></i></span></p><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i></i></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">Haaga-Helia ammattikorkeakoulu</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">, Pasilan kampus</span></i></span></p></div></div><br> <br><div style="color: rgb(0, 0, 0);" data-mce-style="color: #000000;"><hr style="display:inline-block;width:98%" data-mce-style="display: inline-block; width: 98%;"><div id="divRplyFwdMsg" dir="ltr"><span data-mce-style="font-size: 11pt; color: #000000; font-family: Calibri, sans-serif;" style="font-size: 11pt; color: #000000; font-family: Calibri, sans-serif;" face="Calibri, sans-serif"><b>Lähettäjä:</b> midPoint <midpoint-bounces@lists.evolveum.com> käyttäjän Parttimaa Jan <jan.parttimaa@myy.haaga-helia.fi> puolesta<br> <b>Lähetetty:</b> maanantai 26. marraskuuta 2018 18.10<br> <b>Vastaanottaja:</b> midPoint General Discussion<br> <b>Aihe:</b> Re: [midPoint] OpenLDAP - IdM and Scandinavian alphabets (ö,å,ä)</span><div> </div></div><div dir="ltr"><div id="x_divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" data-mce-style="font-size: 12pt; color: #000000; font-family: Calibri, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;"><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Hi,</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">I checked that and I saw this but I don't know what to do and if I modify this, I'm not sure what should I type:</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><div><attribute></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span><ref>ri:gecos</ref></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span><outbound></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span><strength>strong</strength></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span><source></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span><path>fullName</path></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span></source></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span><expression><!-- Strip diacritics and Capitalize String (assumed fullname) --></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span><script></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span><span style="background-color:rgb(255,255,0)" data-mce-style="background-color: #ffff00;"><code>basic.norm(basic.stringify(fullName))?.replaceAll(/\w+/, { it[0].toUpperCase() + ((it.size() > 1) ? it[1..-1] : '') })</code></span></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span></script></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span></expression></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span></outbound></div><div><span style="white-space:pre" data-mce-style="white-space: pre;"></span></attribute></div><br><p><br></p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">I'm quite a noob on XML-coding. Do you know what code should fix this issue?</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Best Regards,</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Jan Parttimaa</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><div id="x_Signature"><div id="x_divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:12pt; background-color:rgb(255,255,255)" data-mce-style="color: #000000; font-family: Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size: 12pt; background-color: #ffffff;"><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">Jan Parttimaa</span></i></span></p><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i></i></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">1602738,</span></i></span></p><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i></i></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">Tietojenkäsittelyn koulutusohjelma,</span></i></span></p><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i></i></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">Haaga-Helia ammattikorkeakoulu</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">, Pasilan kampus</span></i></span></p></div></div></div><hr style="display:inline-block; width:98%" data-mce-style="display: inline-block; width: 98%;"><div id="x_divRplyFwdMsg" dir="ltr"><span data-mce-style="font-size: 11pt; color: #000000; font-family: Calibri, sans-serif;" style="font-size: 11pt; color: #000000; font-family: Calibri, sans-serif;" face="Calibri, sans-serif"><b>Lähettäjä:</b> midPoint <midpoint-bounces@lists.evolveum.com> käyttäjän Ivan Noris <ivan.noris@evolveum.com> puolesta<br> <b>Lähetetty:</b> maanantai 26. marraskuuta 2018 17.48.46<br> <b>Vastaanottaja:</b> midpoint@lists.evolveum.com<br> <b>Aihe:</b> Re: [midPoint] OpenLDAP - IdM and Scandinavian alphabets (ö,å,ä)</span><div> </div></div><div style="background-color:#FFFFFF" data-mce-style="background-color: #ffffff;"><p>Hi Jan,</p><p><br></p><p>this is the behaviour set in the role you are using.</p><p><br></p><p>Check the ri:gecos attribute mapping in the role-meta-unix-group.xml.</p><p><br></p><p>Regards,</p><p>Ivan<br></p><p><br></p><div class="x_x_moz-cite-prefix">On 26. 11. 2018 16:07, Parttimaa Jan wrote:<br></div><blockquote><div id="x_x_divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" data-mce-style="font-size: 12pt; color: #000000; font-family: Calibri, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;"><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Hey,</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">We have connected OpenLDAP server to Midpoint 3.8. Somehow if we create user who has Scandinavian alphabets (ö, Ö, ä, Ä, ö, Ö, å and Å) for example user's full name is "Maija Meikäläinen" (First name: Maija, Family name/Surname: Meikäläinen), Midpoint shows that gecos is Maija Meikalainen and that is why if user login to Linux Desktop or Server, it sees his/her name without those alphabets, for example in this case "Maija Meikalainen".</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Does midpoint support those alphabets or do you know the reason why it does that?</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Best Regards,</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;">Jan Parttimaa</p><p style="margin-top:0; margin-bottom:0" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><div id="x_x_Signature"><div id="x_x_divtagdefaultwrapper" dir="ltr" style="" data-mce-style=""><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">Jan Parttimaa</span></i></span></p><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">1602738,</span></i></span></p><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">Tietojenkäsittelyn koulutusohjelma,</span></i></span></p><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><p><span style="color:rgb(0,0,0)" data-mce-style="color: #000000;"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">Haaga-Helia ammattikorkeakoulu</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif" data-mce-style="font-family: Calibri,Arial,Helvetica,sans-serif;">, Pasilan kampus</span></i></span></p></div></div></div><br><fieldset class="x_x_mimeAttachmentHeader"></fieldset><pre class="x_x_moz-quote-pre">_______________________________________________
midPoint mailing list
<a class="x_x_moz-txt-link-abbreviated OWAAutoLink" href="mailto:midPoint@lists.evolveum.com" id="LPlnk672405" target="_blank" data-mce-href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="x_x_moz-txt-link-freetext OWAAutoLink" href="http://lists.evolveum.com/mailman/listinfo/midpoint" id="LPlnk158401" target="_blank" data-mce-href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre></blockquote><pre class="x_x_moz-signature">--
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre></div></div></div></div><br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>http://lists.evolveum.com/mailman/listinfo/midpoint<br></blockquote><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Ivan Noris<br>Senior Identity Engineer<br>evolveum.com<span name="x"></span><br></div></div></body></html>