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

RE: ldap-backend-sql

thanx for yur reply
I got the sample scripts and ran them,I am also using the same slapd.conf(is
it ok?)
but now the slapd comes out after throwing connection busy error
This is the debug

Again,thanx for yur reply
Mithi.com Pvt. Ltd.
Send and receive mail in Indian languages
Register free at http://www.mailjol.com

bash-2.03# /usr/local/libexec/slapd -f slapd.conf.sql -d 1
@(#) $OpenLDAP: slapd 2.0.7-Release (Thu Nov 23 13:58:38 CST 2000) $
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
daemon: initialized ldap:///
daemon_init: 1 listeners opened
slapd init: initiated server.
<==backsql_db_config(): dbname=demo
<==backsql_db_config(): dbuser=sa
<==backsql_db_config(): dbpasswd=ChalJaldi
<==backsql_db_config(): subtree_cond=ldap_entries.dn LIKE '%'+?
slapd startup: initiated.
==>backsql_db_open(): testing RDBMS connection
backsql_db_open(): objectclass mapping SQL statement not specified (use
oc_query directive in slapd.conf)
backsql_db_open(): setting 'SELECT
id,name,keytbl,keycol,create_proc,delete_proc,expect_return FROM
ldap_oc_mappings' by default
backsql_db_open(): attribute mapping SQL statement not specified (use
at_query directive in slapd.conf)
backsql_db_open(): setting 'SELECT
eturn FROM ldap_attr_mappings WHERE oc_map_id=?' by default
backsql_db_open(): entry insertion SQL statement not specified (use
insentry_query directive in slapd.conf)
backsql_db_open(): setting 'INSERT INTO ldap_entries
(dn,oc_map_id,parent,keyval) VALUES (?,?,?,?)' by default
backsql_db_open(): entry deletion SQL statement not specified (use
delentry_query directive in slapd.conf)
backsql_db_open(): setting 'DELETE FROM ldap_entries WHERE id=?' by default
backsql_open_db_conn: SQLConnect() succeeded with info:
Return code: 1
backsql_open_db_conn(): connected, adding to tree
backsql_get_db_conn(): first call -- reading schema map
load_schema_map(): objectclass 'inetorgperson': keytbl='persons' keycol='id'
create_proc='{call create_person(?)}' delete_proc='{call delete_person(?)}'
expect_return=0; attributes:
load_schema_map(): autoadding 'objectClass' and 'ref' mappings
load_schema_map(): error executing at_query:
Return code: -1
Native error code: 0
SQL engine state: S1000
Message: [unixODBC][Microsoft][ODBC SQL Server Driver]Connection is busy
with results for another hstmt
backsql_free_db_conn(): closing db connection
backsql_db_open(): test failed, schema map not loaded - exiting
backend_startup: bi_db_open 0 failed!
slapd shutdown: initiated
slapd shutdown: freeing system resources.
==>free_oc(): 'inetorgperson'
==>free_attr(): 'ref'
==>free_attr(): 'objectClass'
slapd stopped.
connections_destroy: nothing to destroy.

-----Original Message-----
From: mitya@samovaar.dot.ru [mailto:mitya@samovaar.dot.ru]On Behalf Of
Dmitry Kovalev
Sent: Monday, November 27, 2000 9:13 AM
To: suresh
Subject: Re: ldap-backend-sql

suresh wrote:

> Hello
> I cant any sample database .Can yu tell me which folder they are located
> Suresh
> Mithi.com Pvt. Ltd.

see servers/slapd/back-sql/rdbms_depend