Package: libnss-mysql-bg
Version: 1.3-2
Severity: normal

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Dominic Cleal <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: libnss-mysql-bg: Compatibility problem with libapache-mod-auth-mysql
Bcc: Dominic Cleal <[EMAIL PROTECTED]>
X-Mailer: reportbug 2.64
Date: Wed, 08 Jun 2005 18:32:48 +0100

Package: libnss-mysql-bg
Version: 1.3-2
Severity: normal

I'm running Apache (package v1.3.33-2) along with the 
libapache-mod-auth-mysql (v4.3.8-1) module to provide MySQL based 
authentication for Apache.

I have the libnss-mysql module set up to provide users + groups, which 
operate perfectly normally from other applications, `id` etc:

- /etc/nsswitch.conf -
passwd:         compat mysql
group:          compat mysql
- end -

Within Apache, I am referencing one of my libnss-mysql users with User/Group 
directives for a VirtualHost (to work with suexec).  This works fine if the 
user is defined in /etc/passwd.

When enabling the libapache-mod-auth-mysql module though, the NSS 
MySQL lookup fails though, and the syslog records:

Jun  7 00:15:37 localhost apache: libnss-mysql: Unable to save socket info

This seems to be triggered by when _nss_mysql_save_socket_info (mysql.c:43) 
isn't successful (mysql.c:247).  I'm guessing there's an issue with both 
packages trying to use MySQL within the same process, but I have no 
experience in C to know where to look next.

The problem is resolved for now by disabling the Apache MySQL authentication 
module, however that isn't an ideal solution for my circumstances.

Lastly, I sniffed the packets as it connected to the MySQL server while 
starting up Apache - it successfully connects and authenticates, and then 
the client closes the connection, which I assume is done by the call to 
_nss_mysql_close_sql (mysql.c:250).

If there is anything more I can do to help diagnose the exact issue, please 
let me know.  Compatibility between the two modules would be very useful!


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.5.200408151
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8

Versions of packages libnss-mysql-bg depends on:
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libmysqlclient12            4.0.24-10    mysql database client library
ii  zlib1g                      1:1.2.1.1-7  compression library - runtime

-- no debconf information

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.5.200408151
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8

Versions of packages libnss-mysql-bg depends on:
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libmysqlclient12            4.0.24-10    mysql database client library
ii  zlib1g                      1:1.2.1.1-7  compression library - runtime

-- no debconf information



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

Reply via email to