[389-users] How to add "dc=myExample,dc=com": Basic doubt

Vimal Thomas vimal.thms at gmail.com
Thu Mar 6 17:48:47 UTC 2014


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 at 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 <http://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 at 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=comobjectClass: topobjectClass: domaindc: myExample*
*Thanks,*
*Vimal*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/389-users/attachments/20140306/335ec541/attachment.html>


More information about the 389-users mailing list