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

Re: pb inserting row in LDAP directorie

Daniel Madaoui wrote:
> Hello,
> I am a newbies in LDAP and I can't insert any row in my directorie, and
> despite of my effort I don't understand why .
Maybe because there are no rows in LDAP? (SCNR)


> # ldapadd -f /usr/local/etc/openldap/insert_row -D
> "cn=Manager,dc=my-domain,dc=com" -x -w secret -v
> ldap_initialize( <DEFAULT> )
> add objectClass:
>        organization
> add o:
>        test
> adding new entry "o=test,dc=my-domain,dc=com"
> modify complete
> ldap_add: No such object (32)

Hmm, try telling ldapadd about your base, either on the command line like:

ldapadd -f /usr/local/.../test.ldif -D "<binddn>" -b
"dc=my-domain,dc=com" -x -W

or in /usr/local/etc/ldap.conf (if /usr/local is your --prefix) with:

host	my-domain.com
base  dc=my-domain,dc=com