<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 04/25/2014 02:02 PM, Brian Arthur
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHvBRLNhFVu7bVnKXwZ2rJVa6k0AE69+pYkfKMzw1368aO089g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I’m trying to import an openldap-2.3.27 export into
          389-ds-1.2.2-1</div>
      </div>
    </blockquote>
    <br>
    Note - 389-ds is just a "meta" package - please reference the
    version of 389-ds-base, which is the core LDAP server package.<br>
    <br>
    <blockquote
cite="mid:CAHvBRLNhFVu7bVnKXwZ2rJVa6k0AE69+pYkfKMzw1368aO089g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>and am getting the follow errors in the “rejects” file:</div>
        <div>Invalid syntax. cn: value #0 invalid per syntax</div>
        <div><br>
        </div>
        <div>Sample: cn:: TWFyaW8gUmH6bCBDaGFuZw==</div>
      </div>
    </blockquote>
    <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>
    <blockquote
cite="mid:CAHvBRLNhFVu7bVnKXwZ2rJVa6k0AE69+pYkfKMzw1368aO089g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>I’ve determined (I think) that these errors are from CN
          value pair that are base64 encoded LATIN1 characters.</div>
      </div>
    </blockquote>
    <br>
    Correct.<br>
    <br>
    <blockquote
cite="mid:CAHvBRLNhFVu7bVnKXwZ2rJVa6k0AE69+pYkfKMzw1368aO089g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>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.</div>
        <div><br>
        </div>
        <div>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.</div>
      </div>
    </blockquote>
    <br>
    Scripting is the best way.  I recommend python-ldap.  I am not aware
    of a script that does this.<br>
    <br>
    <blockquote
cite="mid:CAHvBRLNhFVu7bVnKXwZ2rJVa6k0AE69+pYkfKMzw1368aO089g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Thanks!</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
389 users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>