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

RE: HELP "ldap_add: No such object" when following Quick-Start Guide



Found it!!!!!
There were TABs in the slapd.conf file!!!!!
Once I removed those, restarted slapd, BAM. In when the data.

I hope this saves someone else the 24+ hours of hair pulling I just went
through..
-rp

-----Original Message-----
I start slapd using the following slapd.conf:

      include         /etc/openldap/schema/core.schema
      pidfile         /usr/local/var/slapd.pid
      argsfile        /usr/local/var/slapd.args
      database ldbm
      suffix "dc=example,dc=com"
      rootdn "cn=Manager,dc=example,dc=com"
      rootpw secret
      directory       /usr/local/var/openldap-ldbm
      index   objectClass     eq
      access to * by * read

Executing:
      ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts

Provides the response:
      version: 2

      #
      # filter: (objectclass=*)
      # requesting: namingContexts
      #
 
      #
      dn:
      namingContexts: dc=example,dc=com
 
      # search result
      search: 2
      result: 0 Success
      
      # numResponses: 2
      # numEntries: 1

test2.ldif (insuring no preceeding or trailing white spaces)
      dn: dc=example,dc=com
      objectclass: dcObject
      objectclass: organization
      o: Example Company
      dc: example
 
      dn: cn=Manager,dc=example,dc=com
      objectclass: organizationalRole
      cn: Manager

I then execute: 
      ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f
/home/test2.ldif

which replies:
      Enter LDAP Password:

I enter: 
      secret

it replies:
      "dding new entry "dc=example,dc=com
      ldap_add: No such object
 
      ldif_record() = 32

The following two files have been created in
/usr/local/var/openldap-ldbm
      dn2id.dbb  id2entry.dbb 

Anybody have any ideas?

Thanks in advance,
Russell