[Date Prev][Date Next] [Chronological] [Thread] [Top]

newbie question (simplified)



[root@this tux_entries]# ldapsearch -b 'dc=tux,dc=org' 'objectclass=*'
0 matches
[root@this tux_entries]# cat one.ldif
# Entry for create o=tux,dc=tux,dc=org
dn: o=tux,dc=tux,dc=org
objectClass: organization
o: tux
[root@this tux_entries]# ldapadd -x -D 'cn=Manager,dc=tux,dc=org' -w blablabla -f one.ldif
adding new entry "o=tux,dc=tux,dc=org"
ldap_add: No such object
       additional info: parent does not exist

ldif_record() = 32
[root@this tux_entries]# ldapsearch -b 'dc=tux,dc=org' 'objectclass=*'
0 matches
----------------------------------------------------------------------
But if I do the following:
----------------------------------------------------------------------
[root@this tux_entries]# ldapsearch -b 'dc=tux,dc=org' 'objectclass=*'
0 matches
[root@this tux_entries]# cat one.ldif
# Entry for create o=tux,dc=tux,dc=org
*# Note that the following line NOT IS dn: ou=tux,dc=tux,dc=org*
*dn: dc=tux,dc=org*
objectClass: organization
o: tux
[root@this tux_entries]# ldapadd -x -D 'cn=Manager,dc=tux,dc=org' -w abc123 -f one.ldif
adding new entry "dc=tux,dc=org"

[root@this tux_entries]# ldapsearch -b 'dc=tux,dc=org' 'objectclass=*'
dc=tux,dc=org
objectClass=organization
o=tux
1 match
[root@this tux_entries]#

Any ideas?

Thanks