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

back-ldap [ldap_add: no such object]



hello,
 I have been using the back-sql for quite some time. I am now trying
 back-ldap for some application of mine. I am unable to write to the
 slave ldap server. It gives me following error
 ldap_add: no such object

 the slapd.conf are as follows:

 the master slapd.conf
--------------------------------------------------------------
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27
# 20:00:31 kur
 t Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
#include                %SYSCONFDIR%/schema/core.schema
 include         /tmp/openldap-2.0.18/servers/slapd/schema/core.schema
#include                /usr/local/etc/openldap/schema/cosine.schema
#include
 /usr/local/etc/openldap/schema/inetorgperson.schema

 pidfile         /tmp/openldap-2.0.18/servers/slapd/slapd.pid
 argsfile        /tmp/openldap-2.0.18/servers/slapd/slapd.args


database        ldap
suffix          "o=sql,c=RU"
rootdn          "cn=root,o=sql,c=RU"
uri             ldap://localhost:489
binddn          "cn=root,o=sql,c=RU"
bindpw          secret
--------------------------------------------------------------

the slave slapd.conf file
--------------------------------------------------------------
# $OpenLDAP:
# pkg/ldap/servers/slapd/back-sql/rdbms_depend/oracle/slapd.conf,v 1.
3.2.1 2000/07/06 16:45:24 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema

# Define global ACLs to disable default read access.
access to * by * write
####This was added by me to work out the problem, but this also does
####not solve.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args
#######################################################################
# sql database definitions
#######################################################################

database        sql
suffix          "o=sql,c=RU"
rootdn          "cn=root,o=sql,c=RU"
rootpw          secret
updatedn        "cn=root,o=sql,c=RU"
dbname          Openlink
dbuser          user1
dbpasswd        user123
subtree_cond    "UPPER(ldap_entries.dn) LIKE CONCAT('%',UPPER(?))"
insentry_query  "INSERT INTO ldap_entries
(id,dn,oc_map_id,parent,keyval) VALUES
 (ldap_entry_ids.nextval,?,?,?,?)"
 upper_func      UPPER

--------------------------------------------------------------

i run the master on port 389 and slave on port 489

$ ldapsearch -h localhost -p 389 -b 'o=sql,c=ru' '(objectclass=*)'
returns apart from other entries, the following 2 entries:
--------------------------------------------------------------
# sql,RU
dn: o=sql,c=RU
o: sql
objectClass: organization

# rodrigue,sql,RU
dn: cn=rodrigue,o=sql,c=RU
cn: rodrigue
sn: rodrigue
objectClass: inetOrgPerson
--------------------------------------------------------------

$ ldapadd -x -a -H ldap://localhost:389 -D "cn=root,o=sql,c=RU" -W -f
~/sql.ldif
returns
--------------------------------------------------------------
adding new entry "cn=rodrigue1,o=sql,c=RU"
ldap_add: No such object

ldif_record() = 32
--------------------------------------------------------------

the entry rodrigue was added by directly doing add on port 489.

I have read innumerable threads on the lists but those does not help.
I was wondering whether my slapd.conf files are correct.
Someone please help me.

Regards
-atul

-----------------------------------------------------------
  /||\   Atul Deopujari
 /_|| |  M.Tech Student,
/  ||/   Department of Computer Science and Engineering,
Indian Institute of Technology,  Bombay,
India. 400 076
Hostel #1 Room #223
-----------------------------------------------------------