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

New to LDAP. Please Help



Hi,

I am trying to do yellow pages for a project using ldap. I have configured
the ldap server and its up and running. I could add the base dn. The idea is
to maintain company details in the ldap server. When I try to add a new dn,
its not letting me add giving me ldap_add: No such Object error. Can you
brief me on how do I add new dns to the ldap server? I'm using OpenLDap
version 1.2.9 (ldapV3) on Linux

This is how my configuration file looks like:

#
# See slapd.conf(5) for details on configuration
options.
# This file should NOT be world readable.
#
include         /etc/openldap/slapd.at.conf
include         /etc/openldap/slapd.oc.conf
schemacheck     off
#referral       ldap://root.openldap.org/

pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args


#######################################################################
 # ldbm database definitions

#######################################################################

database        ldbm
suffix          "dc=csasia, dc=com"
rootdn          "cn=Manager, dc=csasia, dc=com"
rootpw          secret
directory       /var/lib/ldap

I added the base dn
dn: dc=csasia, dc=com
dc: csasia
objectClass: top
objectClass: organization
objectClass: dcObject
description: Crystal Solutions Asia

I added this entry as
ldapadd -f /tmp/newentry -D "cn=Manager, dc=csasia,
dc=com" -w secret

My schemacheck is off and as of now I have not defined any local schema to
hold data.

Regards,
Tiji