4 Replies Latest reply: Jan 3, 2013 10:12 PM by 802907 RSS

    error on creating empty suffix

    982751
      New here. Im getting errors while running empty suffix.

      [root@localhost bin]# ./dsconf create-suffix -p 1389 -e dc=mycompany,dc=com
      Enter "cn=Directory Manager" password:
      Unable to bind on "localhost:1389".
      The "create-suffix" operation failed on "localhost:1389".
      [root@localhost bin]# pwd
      /dirsrv/dsee7/bin
      [root@localhost bin]# cat /etc/redhat-release
      CentOS release 5.6 (Final)

      Please help
        • 1. Re: error on creating empty suffix
          HansN
          You can't bind to localhost on port 1389. This can be caused by:
          - the instance is running on another host (use -h <host>)
          - the instance is not started
          - the instance is not created (and therefore) not started

          Please have a look at the documentation, starting at:

          http://docs.oracle.com/cd/E19656-01/821-1504/fxxpi/index.html

          Best regards,

          Hans
          • 2. Re: error on creating empty suffix
            802907
            Try adding the -i switch, like:

            dsconf create-suffix -p 1389 -i -e dc=mycompany,dc=com
            • 3. Re: error on creating empty suffix
              982751
              Thanks to both of you. i have populated the suffix with LDIF data

              ## Import complete. Processed 160 entries (160 entries were skipped because they don't belong to this database) in 3 seconds. (53.33 entries/sec)

              Task completed (slapd exit code: 0).

              However when I initiated ldapsearch theres "No such object"

              *[root@mycompany ldif]# /dirsrv/dsee7/dsrk/bin/ldapsearch -p 1389 -b dc=mycompany,dc=com "(uid=scarter)" mail*
              ldap_search: No such object

              [root@mycompany ldif]# grep scarter Example.ldif
              dn: uid=scarter, ou=People, dc=example,dc=com
              uid: scarter
              mail: scarter@example.com
              uniquemember: uid=scarter, ou=People, dc=example,dc=com

              Any ideas?
              • 4. Re: error on creating empty suffix
                802907
                If you created a suffix as per the original post, your LDIF needs to have the same base dn in it, rather than dc=example,dc=com. That's why the import skipped everything in the LDIF.