<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Please take a look at this doc:<br>
<a class="moz-txt-link-freetext" href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Configuring_Directory_Databases.html#Configuring_Directory_Databases-Creating_and_Maintaining_Suffixes">https://access.redhat.com/site/documentation/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Configuring_Directory_Databases.html#Configuring_Directory_Databases-Creating_and_Maintaining_Suffixes</a><br>
      <br>
      You need to create a suffix <b>"dc=myExample,dc=com" </b>following
      the instructions described in this section (if you use command
      line interface).<br>
<a class="moz-txt-link-freetext" href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Configuring_Directory_Databases.html#Creating_Suffixes-Creating_Root_and_Sub_Suffixes_from_the_Command_Line">https://access.redhat.com/site/documentation/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Configuring_Directory_Databases.html#Creating_Suffixes-Creating_Root_and_Sub_Suffixes_from_the_Command_Line</a><br>
      <br>
      In the Example 2.1, The mapping tree entry dn is represented as
      follows:<br>
      <blockquote>dn: cn=dc=example\,dc=com,cn=mapping tree,cn=config<br>
      </blockquote>
      This works, but it is an old format.  Please replace it with this
      dn in the Example 2.1.<br>
      <blockquote>dn: cn="dc=example,dc=com",cn=mapping tree,cn=config<br>
      </blockquote>
      Thanks,<br>
      --noriko<br>
      Vimal Thomas wrote:<br>
    </div>
    <blockquote
cite="mid:CAEvtgUq0EmJfArr-AW4xV7xPwRx+6L5bE5xizhesK-v-6H1kOw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I am new to 389 and LDAP in general.</div>
        <div>I have 389 installed on my CentOS
          (389-ds-base-1.2.11.15-31.el6_5.x86_64)</div>
        <div>I have the basic dc=example,dc=com created when I did
          server setup.</div>
        <div><br>
        </div>
        <div>
          <div>[<b>root@localhost vim]# ldapsearch -x -b
              "dc=example,dc=com" -s base</b></div>
          <div><b># extended LDIF</b></div>
          <div><b>#</b></div>
          <div><b># LDAPv3</b></div>
          <div><b># base &lt;dc=example,dc=com&gt; with scope baseObject</b></div>
          <div><b># filter: (objectclass=*)</b></div>
          <div><b># requesting: ALL</b></div>
          <div><b>#</b></div>
          <div><b><br>
            </b></div>
          <div><b># <a moz-do-not-send="true" href="http://example.com">example.com</a></b></div>
          <div><b>dn: dc=example,dc=com</b></div>
          <div><b>objectClass: top</b></div>
          <div><b>objectClass: domain</b></div>
          <div><b>dc: example</b></div>
          <div><b><br>
            </b></div>
          <div><b># search result</b></div>
          <div><b>search: 2</b></div>
          <div><b>result: 0 Success</b></div>
          <div>
            <b><br>
            </b></div>
          <div><b># numResponses: 2</b></div>
          <div><b># numEntries: 1</b></div>
        </div>
        <div><br>
        </div>
        <div>Now I am trying to create a new object on that line. I want
          to create <b>dc=myExample,dc=com</b></div>
        <div><br>
        </div>
        <div>
          <div><b>[root@localhost vim]# ldapadd -f myExample.ldif -x -W</b></div>
          <div><b>Enter LDAP Password: </b></div>
          <div><b>adding new entry "dc=myExample,dc=com"</b></div>
          <div><b>ldap_add: No such object (32)</b></div>
        </div>
        <div><br>
        </div>
        <div>How can I create the entry <b>dc=myExample,dc=com?</b></div>
        <div><b><br>
          </b></div>
        <div>The content of myExample.ldif is as follows (similar to see
          what I saw in search output of dc=example,dc=com ).</div>
        <div><b>
            <div>dn: dc=myExample,dc=com</div>
            <div>objectClass: top</div>
            <div>objectClass: domain</div>
            <div>dc: myExample</div>
            <div><br>
            </div>
          </b></div>
        <div><b>Thanks,</b></div>
        <div><b>Vimal</b></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>