Your message dated Thu, 3 Mar 2005 01:11:01 +0100
with message-id <[EMAIL PROTECTED]>
and subject line bug fixed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Jul 2004 09:55:48 +0000
>From [EMAIL PROTECTED] Mon Jul 05 02:55:48 2004
Return-path: <[EMAIL PROTECTED]>
Received: from toteemi.oikeatoliot.fi [193.211.13.176] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1BhQCR-0004vj-00; Mon, 05 Jul 2004 02:55:48 -0700
Received: from [193.211.13.178] (helo=[127.0.0.1])
        by toteemi.oikeatoliot.fi with esmtp (Exim 3.35 #1 (Debian))
        id 1BhPdQ-0006LB-00; Mon, 05 Jul 2004 12:19:36 +0300
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: =?iso-8859-1?q?Antti_Piril=E4?= <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: libiodbc2: library doesn't read server name from the system wide 
odbc.ini
 file
Bcc: =?iso-8859-1?q?Antti_Piril=E4?= <[EMAIL PROTECTED]>
X-Mailer: reportbug 2.61
Date: Mon, 05 Jul 2004 13:56:04 +0300
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: libiodbc2
Version: 3.51.2-2
Severity: important
Tags: patch

When trying to connect to the server with slapd I got following debug
output:

==>backsql_open_db_conn()
backsql_open_db_conn: SQLConnect() to database 'ldap' as user 'ldap' failed:
Return code: -1
Native error code: 2005
SQL engine state: S1000
Message: [MySQL][ODBC 3.51 Driver]Unknown MySQL Server Host '<some rubbish>'
(1)
backsql_get_db_conn(): could not get connection handle -- returning NULL
backsql_db_open(): connection failed, exiting
backend_startup: bi_db_open(0) failed! (1)
slapd shutdown: initiated
==>backsql_db_close()

I had set my server name in the /etc/odbc.ini file. When I added following
statement to iodbcinst/SQLGetPrivateProfileString.c to line 89

  lpszRetBuffer[0] = 0; 

Now the GetPrivateProfileString function looks like

int
GetPrivateProfileString (LPCSTR lpszSection, LPCSTR lpszEntry,
    LPCSTR lpszDefault, LPSTR lpszRetBuffer, int cbRetBuffer,
    LPCSTR lpszFilename)
{
  char *defval = (char *) lpszDefault, *value = NULL;
  int len = 0;
  PCONFIG pCfg;

  lpszRetBuffer[cbRetBuffer - 1] = 0;
  lpszRetBuffer[0] = 0;

  /* If error during reading the file */
  if (_iodbcdm_cfg_search_init (&pCfg, lpszFilename, FALSE))
....

This fixed the problem at least for me.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.6-1-386
Locale: LANG=fi_FI, LC_CTYPE=fi_FI

Versions of packages libiodbc2 depends on:
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared libraries an

-- no debconf information

---------------------------------------
Received: (at 257680-done) by bugs.debian.org; 3 Mar 2005 00:11:05 +0000
>From [EMAIL PROTECTED] Wed Mar 02 16:11:04 2005
Return-path: <[EMAIL PROTECTED]>
Received: from gate.lathspell.de (app109.intern) [212.117.68.82] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D6dvk-0000Lh-00; Wed, 02 Mar 2005 16:11:04 -0800
Received: by app109.intern (Postfix, from userid 1000)
        id 3D5D5C278; Thu,  3 Mar 2005 01:11:01 +0100 (CET)
Date: Thu, 3 Mar 2005 01:11:01 +0100
From: Christian Hammers <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: bug fixed
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

The mentioned bug in iodbc2 has been fixed a while ago by upstream.

bye,

-christian-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to