You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/05/03 14:41:57 UTC

DO NOT REPLY [Bug 42327] New: - mod authn dbd authing with mysql fails no authn configured

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42327

           Summary: mod authn dbd  authing with mysql fails no authn
                    configured
           Product: Apache httpd-2
           Version: 2.2.4
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_auth
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: noel.butler@ausics.net


apache 2.2.4, linux.
DBDriver and DBParams setup in global

Use of mysql fails to auth users, creating a 500 error.
Setup as directed in docs.
Used in virtualhosts
connects and logs in OK to mysql DB, but does nothing more, apache logs show
No DBD Authn configured!
.......but there most certainly is...

mysql log shows:
070503 9:42:57       4 Connect     apache@IP.REMOVED on http_AuthDB
070503 9:42:59       4 Quit


Maybe related, docs reflect DBDriver/DBParams etc able to be placed in global
and virtualhost block, I also tried in virt block, apache bails, saying not
allowed here.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42327] - mod authn dbd authing with mysql fails no authn configured

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42327





------- Additional Comments From noel.butler@ausics.net  2007-05-03 14:51 -------
(In reply to comment #1)
> Please use a user support forum for problems like this (and the week of
apachecon might not be the ideal 
> timing - try again next week if necessary).
> 
> The error message is saying you didn't configure a SELECT statement valid for
the scope you're trying to 
> use it in.

Firstly I have posted in users mailing list, with no responses,w hich is why I
opted to log it here.

in the global I have
DBDriver mysql
DBDParams "host=HOST.REMOVED dbname=http_AuthDB user=NOPE pass=NOTONURLIFE"
DBDPersist off

Secondly. I do have a select statement, As I said, I set it up as per the apache
docs, out of the vhost block using the alias method and inside it like

-start directory block inside a vhost block
  AuthName "Manage"
  AuthType Basic
  AuthBasicProvider dbd
  AuthDBDUserPWQuery  "SELECT user_passwd FROM user_info WHERE user_name = %s"
  Require valid-user
-end directory block inside vhost block

If this is wrong, the docs are incomplete or I keep reading the wrong docs, even
via google. Google did show this problem with many hits, even a comment from you
Nick, asking if this was still a problem with 2.2.4 and someone responded yes,
but nothing I found after days of googling, found any workarounds or corrections
to the procedures, if I'm wrong I'll eat humble pie.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42327] - mod authn dbd authing with mysql fails no authn configured

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42327


nick@webthing.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From nick@webthing.com  2007-05-03 07:14 -------
Please use a user support forum for problems like this (and the week of apachecon might not be the ideal 
timing - try again next week if necessary).

The error message is saying you didn't configure a SELECT statement valid for the scope you're trying to 
use it in.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42327] - mod authn dbd authing with mysql fails no authn configured

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42327





------- Additional Comments From nick@webthing.com  2007-05-10 04:26 -------
Created an attachment (id=20161)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20161&action=view)
Bojan's patches, attached here for easy reference.

This supersedes my comment #5, made after I'd reviewed only the first (trivial
but crucial) patch.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42327] - mod authn dbd authing with mysql fails no authn configured

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42327


bugs@ausics.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From bugs@ausics.net  2007-05-09 20:31 -------
Closing, a couple of bugs were found in mod_dbd, a patch has been submitted by
Bojan to devel that fixes this problem. Hopefully they'll commit it ASAP.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42327] - mod authn dbd authing with mysql fails no authn configured

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42327


noel.butler@ausics.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Additional Comments From noel.butler@ausics.net  2007-05-07 18:51 -------
RE-opening as it clearly does not work as documented in 2.2.4



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42327] - mod authn dbd authing with mysql fails no authn configured

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42327


nick@webthing.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
          Component|mod_auth                    |Other Modules
         Resolution|FIXED                       |




------- Additional Comments From nick@webthing.com  2007-05-10 03:53 -------
It's not fixed until we get the patch in, and an open bug reference helps with
getting it reviewed (which is necessary: that's the rules for a stable branch,
however trivial the fix).

For reference, here's Bojan's patch:

Index: modules/database/mod_dbd.c
===================================================================
--- modules/database/mod_dbd.c	(revision 536728)
+++ modules/database/mod_dbd.c	(working copy)
@@ -661,7 +661,7 @@
     svr_cfg *svr;
     server_rec *sp;
     for (sp = s; sp; sp = sp->next) {
-        const char *key = apr_psprintf(s->process->pool, "%pp", s);
+        const char *key = apr_psprintf(s->process->pool, "%pp", sp);
         svr = ap_get_module_config(sp->module_config, &dbd_module);
         svr->prepared = apr_hash_get(dbd_prepared_defns, key,
                                      APR_HASH_KEY_STRING);


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42327] - mod authn dbd authing with mysql fails no authn configured

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42327


chrisd@pearsoncmg.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From chrisd@pearsoncmg.com  2007-05-15 18:37 -------
The is a duplicate of PR #41302.  The mod_dbd.c code in trunk should
solve these issues; see r503931, which I'll propose for back-porting to
the 2.2.x branch shortly:

http://svn.apache.org/viewvc?view=rev&revision=503931

Also the fourth section of this posting:

http://marc.info/?l=apache-httpd-dev&m=116742014418304&w=2

*** This bug has been marked as a duplicate of 41302 ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org