[freetds] TDS and ldap

Nicolas Goy goyman at goyman.com
Wed Apr 14 19:09:18 EDT 2004


Hello,

I try to setup open ldap with sybase as a back-sql backend.

Odbc is working right now.

I isolated the problem of ldap in the odbc layer.

When ldap exec it send some input to the databse:

00:00000:00012:2004/04/15 01:00:34.27 server  DBCC TRACEON 11202, SPID 12
00:00000:00013:2004/04/15 01:00:37.47 server  TDS_LANG, spid 13: command 
text:
set textsize 64512 use GAddress
00:00000:00013:2004/04/15 01:00:37.48 server  TDS_LANG, spid 13: command 
text:
BEGIN TRANSACTION
00:00000:00013:2004/04/15 01:00:37.49 server  TDS_DYNP, spid 13: command 
text:
create proc w53y006000 as SELECT 
id,name,keytbl,keycol,create_proc,delete_proc,expect_return FROM 
ldap_oc_mappings
00:00000:00013:2004/04/15 01:00:37.53 server  TDS_LANG, spid 13: command 
text:
IF @@TRANCOUNT > 0 ROLLBACK BEGIN TRANSACTION

the problem is that the line IF @@TRANCOUNT > 0 ROLLBACK BEGIN 
TRANSACTION return -1 and the ldap server think the request failed and 
it stop.

I really need this ldap server to work with the sybase backend, so help 
will be greatly apreciated.

Regards

Goyman



More information about the FreeTDS mailing list