Please take a look at this doc:
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

You need to create a suffix "dc=myExample,dc=com" following the instructions described in this section (if you use command line interface).
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

In the Example 2.1, The mapping tree entry dn is represented as follows:
dn: cn=dc=example\,dc=com,cn=mapping tree,cn=config
This works, but it is an old format.  Please replace it with this dn in the Example 2.1.
dn: cn="dc=example,dc=com",cn=mapping tree,cn=config
Thanks,
--noriko
Vimal Thomas wrote:
Hi,

I am new to 389 and LDAP in general.
I have 389 installed on my CentOS (389-ds-base-1.2.11.15-31.el6_5.x86_64)
I have the basic dc=example,dc=com created when I did server setup.

[root@localhost vim]# ldapsearch -x -b "dc=example,dc=com" -s base
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope baseObject
# filter: (objectclass=*)
# requesting: ALL
#

# example.com
dn: dc=example,dc=com
objectClass: top
objectClass: domain
dc: example

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

Now I am trying to create a new object on that line. I want to create dc=myExample,dc=com

[root@localhost vim]# ldapadd -f myExample.ldif -x -W
Enter LDAP Password: 
adding new entry "dc=myExample,dc=com"
ldap_add: No such object (32)

How can I create the entry dc=myExample,dc=com?

The content of myExample.ldif is as follows (similar to see what I saw in search output of dc=example,dc=com ).
dn: dc=myExample,dc=com
objectClass: top
objectClass: domain
dc: myExample

Thanks,
Vimal


--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users