<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Rich Megginson [mailto:rmeggins@redhat.com] <br><b>Sent:</b> Friday, April 25, 2014 2:02 PM<br><b>To:</b> General discussion list for the 389 Directory server project.; brianpatrickarthur@gmail.com<br><b>Subject:</b> Re: [389-users] Export/Import: openldap-2.3.27 to 389-ds-1.2.2-1<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal style='margin-left:.5in'>On 04/25/2014 02:02 PM, Brian Arthur wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><div><p class=MsoNormal style='margin-left:.5in'>Hi,<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>I’m trying to import an openldap-2.3.27 export into 389-ds-1.2.2-1<o:p></o:p></p></div></div></blockquote><p class=MsoNormal style='margin-left:.5in'><br>Note - 389-ds is just a &quot;meta&quot; package - please reference the version of 389-ds-base, which is the core LDAP server package.<br><br><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Correction: 389-ds-base-1.2.10<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div><p class=MsoNormal style='margin-left:.5in'>and am getting the follow errors in the “rejects” file:<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>Invalid syntax. cn: value #0 invalid per syntax<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>Sample: cn:: TWFyaW8gUmH6bCBDaGFuZw==<o:p></o:p></p></div></div><p class=MsoNormal style='margin-left:.5in'><br>I thought openldap 2.3 had strict syntax checking, that would not have allowed this value at all - perhaps it was turned off?<br><br><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’m not sure if it was turned off. How can I tell? All the “syntax” plugins I looked at in my config are “on”. I would like to turn it back on and enforce UTF-8. There is a PERL based application that we use to populate LDAP entries and I that is how the LATIN-1 values get entered. I’ll talk with the developer of the PERL application to start using  UTF-8. I hope that openldap-2.3.27 can handle UTF-8.</span><o:p></o:p></p><div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>I’ve determined (I think) that these errors are from CN value pair that are base64 encoded LATIN1 characters.<o:p></o:p></p></div></div><p class=MsoNormal style='margin-left:.5in'><br>Correct.<br><br><br><o:p></o:p></p><div><div><p class=MsoNormal style='margin-left:.5in'>If I decode string(base64 command), convert it to UTF8(via iconv), I can import into Fedora389 successfully. I have a lot of entries with these values and am looking for an easy solution.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>Has anyone come across this before and written a script to process an LDIF file or a different way to transfer the data? I’m not much of a programmer but I do have programmers in my organization that could assist me if a script is the best solution.<o:p></o:p></p></div></div><p class=MsoNormal style='margin-left:.5in'><br>Scripting is the best way.&nbsp; I recommend python-ldap.&nbsp; I am not aware of a script that does this.<br><br><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I will look into python-ldap for converting the file. Thanks for the suggestion.<o:p></o:p></span></p><div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>Thanks!<o:p></o:p></p></div></div><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>PS – I hope this messages posts in a nice, readable format!<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p><pre style='margin-left:.5in'>--<o:p></o:p></pre><pre style='margin-left:.5in'>389 users mailing list<o:p></o:p></pre><pre style='margin-left:.5in'><a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><o:p></o:p></pre><pre style='margin-left:.5in'><a href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><o:p></o:p></pre><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div></body></html>