On Wed, Jun 08, 2005 at 06:39:21PM +0100, Dominic Cleal wrote:
>
> 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
>
Hi,
I tried to reproduce this bug and was unable :(
I installed a fresh sarge system with apache (1.3.33-6), libnss-mysql-bg
(1.3-2),
libapache-mod-auth-mysql (4.3.9-2).
I made the the nss-mysql configuration using just the "minimal" in
example directory.
Here is the relevant apache conf:
<IfModule mod_alias.c>
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
#
# "/usr/lib/cgi-bin" could be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory /var/www/cgi-bin/>
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
</IfModule>
<VirtualHost _default_:*>
User cinergi
Group foobaz
Auth_MySQL_Info localhost nss-root rootpass
<Location />
Auth_MySQL_DB auth
Auth_MySQL_Password_Table users
Auth_MySQL_Username_Field username
Auth_MySQL_Password_Field password
Auth_MySQL_Encryption_Types Crypt_DES
Auth_MYSQL on
AuthName "My Company's Financial Information - Top Secret"
AuthType Basic
require valid-user
</Location>
</VirtualHost>
I installed php4-cgi and made a simple /var/www/cgi-bin/test.cgi script
I then went to http://localhost/cgi-bin/test.cgi, authentication
succeded and script was correctly executed with the proper rights.
So ... I suggests that you try using the latest libapache-mod-auth-mysql
as the changelog says a "Rebuild for libmysqlclient12" which could help
in your case.
Regards,
Emmanuel Lacour.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]