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

PROBLEM WHILE ADDING DATA IN TO POSTGRESQL THROUGH LDIF FILE!



hello,
	I am trying to run OpenLDAP-2..0.18 with back end postgresql-7.2 with
libodbc-3.0.5
	while adding the data through LDIF file

  It gives me following error
 ldap_add: no such object

 the slapd.conf are as follows:

--------------------------------------------------------------
# $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		/usr/local/etc/openldap/schema/core.schema
include		/usr/local/etc/openldap/schema/cosine.schema
include		/usr/local/etc/openldap/schema/inetorgperson.schema
include		/usr/local/etc/openldap/schema/nis.schema

 pidfile         /tmp/openldap-2.0.18/servers/slapd/slapd.pid
 argsfile        /tmp/openldap-2.0.18/servers/slapd/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

--------------------------------------------------------------
Hi,
	I am trying to run OpenLDAP-2..0.23 with back end postgresql-7.2 with
libodbc-3.0.5$

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

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

$ 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


_____________________________________________________________
	MY ldif file is as follows
____________________________________________________

dn: cn=User1,o=sql,c=RU
cn: User1
sn: User1
telephoneNumber: 374-3437
telephoneNumber: 894-3434
objectClass: person
----------------------------------------------------------------------------
-------


please help me in this regard..

	Thanks in advance..

	Naren

**************************Disclaimer************************************


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.


*****************************************************************************