<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 05/20/2011 02:25 PM, Roland Schwingel wrote:
    <blockquote
cite="mid:OFA76ADC6F.BDBFD5C2-ONC1257896.006FFDE4-C1257896.00703EC9@onevision.com"
      type="cite">
      <br>
      <font face="sans-serif" size="2">Hi Rich...</font>
      <br>
      <br>
      <font face="sans-serif" size="2">Thanks for the reply,</font>
      <br>
      <br>
      <tt><font size="2">&gt; So currently you have all of the directory
          servers
          registered with a<br>
          &gt; directory server running in Net-A - this is the directory
          server <br>
          &gt; that hosts the o=netscaperoot suffix used to register and
          configure
          <br>
          &gt; those servers in the console. &nbsp;This is on a machine with
          hostname
          <br>
          &gt; ldap.neta or something like that. &nbsp;Now you want instead
          to have
          a <br>
          &gt; new server ldap.netc and have all of the directory
          servers <br>
          &gt; registered with that server instead?</font></tt>
      <br>
      <br>
      <tt><font size="2">You are right....</font></tt>
      <br>
      <tt><font size="2">When running setup-ds-admin.pl you have the
          option
          to register</font></tt>
      <br>
      <tt><font size="2">a new server to another already running server.
          This
          one is at</font></tt>
      <br>
      <tt><font size="2">present the one in net-a. Now I have to
          register all
          server to a</font></tt>
      <br>
      <tt><font size="2">server in net-c. </font></tt>
      <br>
    </blockquote>
    Are you moving any of the servers other than the one that contains
    o=NetscapeRoot?&nbsp; If not, then you could try the following:<br>
    1) export the o=NetscapeRoot (NetscapeRoot) database from the server
    in net-a<br>
    &nbsp;db2ldif -U -n NetscapeRoot -a /path/to/nsroot.ldif<br>
    2) use perl/sed/awk/whatever you are most comfortable with to change
    references to net-a to net-c in nsroot.ldif<br>
    3) Create a suffix o=NetscapeRoot and database NetscapeRoot in the
    server in net-c<br>
    4) Import (initialize) the new o=NetscapeRoot with the old server
    data<br>
    <br>
    Then, you'll have to edit the /etc/dirsrv/admin-serv/adm.conf in all
    of your servers to change any references to net-a to net-c, then
    restart the admin server (restart-ds-admin)<br>
    <br>
    Finally, you'll have to run ldapmodify on all of your servers
    (except the one that has the new o=NetscapeRoot) to do something
    like this:<br>
    <br>
    ldapmodify -x -h hostname -D "cn=directory manager" -W &lt;&lt;EOF<br>
    dn: cn=Pass Through Authentication,cn=plugins,cn=config<br>
    changetype: modify<br>
    replace: nsslapd-pluginarg0<br>
    nsslapd-pluginarg0:
    <a class="moz-txt-link-freetext" href="ldap://hostname.of.new.server.in.net-c/o=NetscapeRoot">ldap://hostname.of.new.server.in.net-c/o=NetscapeRoot</a><br>
    <br>
    You'll have to restart the server in order for this change to take
    effect, but if you don't want to manage the server via the console,
    you don't have to restart it.<br>
    <br>
    <blockquote
cite="mid:OFA76ADC6F.BDBFD5C2-ONC1257896.006FFDE4-C1257896.00703EC9@onevision.com"
      type="cite">
      <br>
      <tt><font size="2">Thanks for your kind help,</font></tt>
      <br>
      <br>
      <tt><font size="2">Roland</font></tt>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
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>