<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    The better way would be using a tool on the OS that's like db2ldif
    (pretty sure most netscape LDAP deriviatives come with these).<br>
    <br>
    When you do a ldapsearch like that the server won't send along some
    fields (password being one of them). If you run the db2ldif it'll
    spit out an ldif file then you should be able to import it with
    something like ldif2db or just an ldapadd.<br>
    <br>
    <div class="moz-cite-prefix">On 04/10/2014 02:24 PM, Herb Burnswell
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAOuzmw5FvzE0YsGDa4tdiQifmUoTTLiBzrrzD5Te+sXf6J_LnA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">Dustin thanks for the reply.</pre>
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">I would need everything in:</pre>
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">o=companyA <i style="font-family:arial">dc=hq,dc=example,dc=com</i></pre>
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">Everything appears to be imported as needed except the password issue.  If I reset the passwords in the new implementation it's fine but that won't work with 100's of users.</pre>
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">Is this:</pre>
        <pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><i>ldapsearch -b "o=companyA" -D "dc=hq,dc=example,dc=com" -h </i><i>original_system &gt; output.ldif</i></pre>
<pre><i><font color="#000000"><span style="white-space:pre-wrap">an acceptable way of exporting everything including passwords for users or is there a better way?</span></font></i></pre><pre><i style="font-family:arial"><font color="#000000"><span style="white-space:pre-wrap">Thanks again,</span></font></i></pre>
<pre><i style="font-family:arial"><font color="#000000"><span style="white-space:pre-wrap">Herb </span></font></i>
</pre></pre>
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">
</pre>
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">Dustin Rice:</pre>
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">Well, schema would be like, the list of fields whereas it looks like you </pre>
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">might be doing a dump/load of users/groups?

On 04/10/2014 01:17 PM, Herb Burnswell wrote:
&gt;<i> All,
</i>&gt;<i>
</i>&gt;<i> I'm attempting to import an LDAP schema (is that the correct term?) 
</i>&gt;<i> from one LDAP implementation to another and it appears that I may be 
</i>&gt;<i> doing it incorrectly.  I created a ldif file for import as:
</i>&gt;<i>
</i>&gt;<i> ldapsearch -b "o=companyA" -D "dc=hq,dc=example,dc=com" -h 
</i>&gt;<i> original_system &gt; output.ldif
</i>&gt;<i>
</i>&gt;<i> I then used the GUI in the new LDAP implementation to import the ldif 
</i>&gt;<i> file.  Everything seemed to work find as I have the entire tree but 
</i>&gt;<i> there appears to be a problem with passwords.
</i>&gt;<i>
</i>&gt;<i> Am I missing the passwords for users with this export to ldif file? 
</i>&gt;<i>  What is the proper procedure to import all information from a schema 
</i>&gt;<i> (is that the correct term?) to import into a new LDAP implementation?
</i>&gt;<i>
</i>&gt;<i> Thanks in advance for any assistance,
</i>&gt;<i>
</i>&gt;<i> Herb
</i>&gt;<i>
</i>&gt;<i>
</i>&gt;<i> --
</i>&gt;<i> 389 users mailing list
</i>&gt;<i> <a moz-do-not-send="true" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">389-users at lists.fedoraproject.org</a>
</i>&gt;<i> <a moz-do-not-send="true" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a>
</i>
-- 
=====================================
Dustin Rice
UNIX System Administrator - CIS
Portland State University
=====================================
</pre>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Thu, Apr 10, 2014 at 1:17 PM, Herb
          Burnswell <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:herbert.burnswell@gmail.com" target="_blank">herbert.burnswell@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">All,
              <div><br>
              </div>
              <div>I'm attempting to import an LDAP schema (is that the
                correct term?) from one LDAP implementation to another
                and it appears that I may be doing it incorrectly.  I
                created a ldif file for import as:</div>
              <div><br>
              </div>
              <div>ldapsearch -b "o=companyA" -D
                "dc=hq,dc=example,dc=com" -h original_system &gt;
                output.ldif</div>
              <div><br>
              </div>
              <div>I then used the GUI in the new LDAP implementation to
                import the ldif file.  Everything seemed to work find as
                I have the entire tree but there appears to be a problem
                with passwords.</div>
              <div><br>
              </div>
              <div>Am I missing the passwords for users with this export
                to ldif file?  What is the proper procedure to import
                all information from a schema (is that the correct
                term?) to import into a new LDAP implementation?</div>
              <div><br>
              </div>
              <div>Thanks in advance for any assistance,</div>
              <div><br>
              </div>
              <div>Herb</div>
            </div>
          </blockquote>
        </div>
        <br>
      </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>
    <pre class="moz-signature" cols="72">-- 
=====================================
Dustin Rice
UNIX System Administrator - CIS
Portland State University
=====================================</pre>
  </body>
</html>