- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- MySQL, Apache authentication
Operating System - Linux
1819966
Members
3411
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2002 07:03 AM
тАО12-09-2002 07:03 AM
MySQL, Apache authentication
Hey there.
I'm getting some difficulties getting apache to authenticate users through mod_auth_mysql.
I'm running own-build apache 2 (2.0.43) with build mod_auth_mysql. Thinking that all is installed ok, compiling went ok.. but....
using the .htaccess listed here:
-- .htaccess
AuthName "My Authorization"
AuthType Basic
AuthMySQLHost localhost
AuthMySQLDB auth_db
AuthMySQLUser sql_user
AuthGroupFile /dev/null
AuthMySQLPassword auth_pw
AuthMySQLUserTable auth_users
AuthMySQLNameField uname
AuthMySQLPasswordField pass
AuthMySQLGroupField user_level
AuthMySQLAuthoritative On
AuthMySQLCryptedPasswords on
AuthUserFile /dev/null
require group 1
---
The 'AuthUserFile' (according to many samples/examples/docs I've seen) should not need to be there, but...
without that line I get a:
Internal error: pcfg_openfile() called with NULL filename
[client 145.7.200.27] (9)Bad file descriptor: Could not open password file: (null)
(a server error 500)
and WITH the line it just doesn't find the user (the window asking for username/passwd comes up), but it probably looks inside the AuthUserFile (/dev/null doesn't contain it.. duh).
is there anything I'm missing ? thanks..
-NvR
I'm getting some difficulties getting apache to authenticate users through mod_auth_mysql.
I'm running own-build apache 2 (2.0.43) with build mod_auth_mysql. Thinking that all is installed ok, compiling went ok.. but....
using the .htaccess listed here:
-- .htaccess
AuthName "My Authorization"
AuthType Basic
AuthMySQLHost localhost
AuthMySQLDB auth_db
AuthMySQLUser sql_user
AuthGroupFile /dev/null
AuthMySQLPassword auth_pw
AuthMySQLUserTable auth_users
AuthMySQLNameField uname
AuthMySQLPasswordField pass
AuthMySQLGroupField user_level
AuthMySQLAuthoritative On
AuthMySQLCryptedPasswords on
AuthUserFile /dev/null
require group 1
---
The 'AuthUserFile' (according to many samples/examples/docs I've seen) should not need to be there, but...
without that line I get a:
Internal error: pcfg_openfile() called with NULL filename
[client 145.7.200.27] (9)Bad file descriptor: Could not open password file: (null)
(a server error 500)
and WITH the line it just doesn't find the user (the window asking for username/passwd comes up), but it probably looks inside the AuthUserFile (/dev/null doesn't contain it.. duh).
is there anything I'm missing ? thanks..
-NvR
If all else fails, try reading the manual...
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2002 01:32 PM
тАО12-09-2002 01:32 PM
Re: MySQL, Apache authentication
What have you got in your Apache configuration for 'mod_auth_mysql' ?
Check the log files to make sure the module it's self is getting intilised properly.
Check the log files to make sure the module it's self is getting intilised properly.
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2002 11:53 AM
тАО12-10-2002 11:53 AM
Re: MySQL, Apache authentication
Inside the apache config I have:
LoadModule mysql_auth_module modules/mod_auth_mysql.so
The module is loaded ok (afaik).. with the apache handler 'server-info' this is displayed (amongst other things...):
Module Name: mod_auth_mysql.c
Content handlers: none
Configuration Phase Participation: Create Directory Config
Request Phase Participation: Verify User ID, Verify User Access
Module Directives:
AuthMySQLHost - mysql server host name
AuthMySQLUser - mysql server user name
AuthMySQLPassword - mysql server user password
AuthMySQLDB - mysql database name
AuthMySQLUserTable - mysql user table name
AuthMySQLGroupTable - mysql group table name
AuthMySQLNameField - mysql User ID field name within table
AuthMySQLGroupField - mysql Group field name within table
AuthMySQLPasswordField - mysql Password field name within table
AuthMySQLCryptedPasswords - mysql passwords are stored encrypted if On
AuthMySQLScrambledPasswords - mysql passwords are stored scrambled if On
AuthMySQLKeepAlive - mysql connection kept open across requests if On
AuthMySQLAuthoritative - mysql lookup is authoritative if On
AuthMySQLNoPasswd - If On, only check if user exists; ignore password
AuthMySQLUserCondition - condition to add to user where-clause
AuthMySQLGroupCondition - condition to add to group where-clause
Current Configuration:
--
LoadModule mysql_auth_module modules/mod_auth_mysql.so
The module is loaded ok (afaik).. with the apache handler 'server-info' this is displayed (amongst other things...):
Module Name: mod_auth_mysql.c
Content handlers: none
Configuration Phase Participation: Create Directory Config
Request Phase Participation: Verify User ID, Verify User Access
Module Directives:
AuthMySQLHost - mysql server host name
AuthMySQLUser - mysql server user name
AuthMySQLPassword - mysql server user password
AuthMySQLDB - mysql database name
AuthMySQLUserTable - mysql user table name
AuthMySQLGroupTable - mysql group table name
AuthMySQLNameField - mysql User ID field name within table
AuthMySQLGroupField - mysql Group field name within table
AuthMySQLPasswordField - mysql Password field name within table
AuthMySQLCryptedPasswords - mysql passwords are stored encrypted if On
AuthMySQLScrambledPasswords - mysql passwords are stored scrambled if On
AuthMySQLKeepAlive - mysql connection kept open across requests if On
AuthMySQLAuthoritative - mysql lookup is authoritative if On
AuthMySQLNoPasswd - If On, only check if user exists; ignore password
AuthMySQLUserCondition - condition to add to user where-clause
AuthMySQLGroupCondition - condition to add to group where-clause
Current Configuration:
--
If all else fails, try reading the manual...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP