#9 mod_auth_mysql + apache 2.2

closed
nobody
None
5
2007-01-23
2006-11-19
Aiv
No

There is a problem with mod_auth_mysql with apache 2.2

My .htacces file looks like:
<IfModule mod_auth_mysql.c>
AuthName "Login"
AuthType Basic
require valid-user
AuthMySQLUser login
AuthMySQLPassword password
AuthMySQLDB db
AuthMySQLUserTable admin
AuthMySQLNameField admin_login
AuthMySQLPasswordField admin_password
AuthMySQLNoPasswd Off
AuthMySQLAuthoritative On
#AuthMySQLKeepAlive off
AuthMySQLPwEncryption MD5
AuthMySQLEnable On
AuthMySQLUserTable "admin"
AuthMySQLUserCondition "(admin.admin_type = 'admin' or admin.admin_type = 'admin2')"
</IfModule>

and when i try to log in i have error in apache log:

[error] Internal error: pcfg_openfile() called with NULL filename

In google You can find informations about this error. You can repair this with directive:

AuthUserFile /dev/null

but when i add this i can't log in:

[error] [client ...] user admin not found: /area/

mod_auth_mysql don't even try to connect to my mysql server.

Discussion

  • M.Boz

    M.Boz - 2006-11-28

    Logged In: YES
    user_id=1655881
    Originator: NO

    Hi!

    Same issue here with: (on FC5 X64 updated)

    httpd-2.2.2-1.2
    mod_auth_mysql-3.0.0-3

    On my old config, everything works great with apache 2.0.x & auth_mod_mysql 2.6.1 (FC4)

    see you!
    thx

     
  • Nobody/Anonymous

    Logged In: NO

    I have experienced the exact same problem. I have added some debugging to mod_auth_mysql and it appears that the code never gets to open_db_handle nor does it ever even get to mysql_authenticate_basic_user. I wonder if it has something to do with the mysql_auth_cmds since I had to patch the original APR_XtOffsetOf with APR_OFFSETOF. Any ideas would help greatly. I would really like to not have to hack the whole module.

     
  • Jerry Stuckle

    Jerry Stuckle - 2007-01-23
    • status: open --> closed
     
  • Jerry Stuckle

    Jerry Stuckle - 2007-01-23

    Logged In: YES
    user_id=1049703
    Originator: NO

    This module currently does not support Apache 2.2. Apache 2.2. has its own authentication mechanism.

     

Log in to post a comment.