General discussion

Locked

LDAP Problems

By sbenvenuti ·
I am trying to impliment an LDAP server using LDBM as the backend. I have configured the slapd.conf and the LDIF file correctly. Everytime I try to add the entry using the following command:
ldapadd -D"cn=root, o=MyOrg, c=ZA" -f /tmp/newldif -x
I get the following error:
ldap_add: no such object
ldif_record( ) = 32

I have tried everything and cant get it to work, what else can I do to add it to the database?

Regards
Stephen

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by sprimost In reply to LDAP Problems

Assuming that the directory manager is "cn=root...", you will need to add a parameter for password (I think it should be something like "-w".

The ldif file you are using is, I assume, "...newldif", it should look like "dn: distinguished name in full" followed by lines of objectclass defined, and then the attributes. Depending on the directory server (you did not mention which one), if you name an entry as "cn", you must also add an attribute of cn because of objectclass mandatory requirements. Also, depending on the implementation of ldapadd, you may need to add the commands for add as required by ldif. There is actually a really good RFC on this...(try google of RFC ldif format). It appears that it is expecting a command, and the default is modify and not add.

Back to Linux Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums