| Author | 
  | 
hackztor
 
 
  Joined: 28 Jan 2006 Posts: 13
 
  | 
 Posted: Fri 28 Apr '06 20:10    Post subject: mod_auth_phpbb | 
     | 
 
  | 
 
I cannot get this to work.  The module loads fine  and i think i have the right stuff in my httpd.conf   but   when i go to load the page it allows me in without a password or username.  
 
 
<IfModule mod_auth_phpbb.so>  ##replaced it from .c##
 
    <Location /restricted>
 
    	AuthName "MySQL_phpBB Secured Folder"
 
	AuthType Basic
 
	require valid-user
 
        AuthPhpBBMySQLHost localhost
 
        AuthPhpBBMySQLPort 3306
 
        AuthPhpBBMySQLDB nuke
 
        AuthPhpBBMySQLUser xxxxxx
 
        AuthPhpBBMySQLPassword xxxxx
 
        AuthPhpBBPrefix  "phpbb_"
 
        AuthPhpBBMySQLAuthoritative on
 
    </Location>
 
</IfModule>
 
 
 
www.hackztor.com/restricted             
 
 
any ideas | 
 
  | 
| Back to top | 
 | 
hackztor
 
 
  Joined: 28 Jan 2006 Posts: 13
 
  | 
 Posted: Fri 28 Apr '06 20:16    Post subject:  | 
     | 
 
  | 
 
| nm i got it. | 
 
  | 
| Back to top | 
 | 
hackztor
 
 
  Joined: 28 Jan 2006 Posts: 13
 
  | 
 Posted: Fri 28 Apr '06 20:48    Post subject:  | 
     | 
 
  | 
 
| um  actually i got it to come up but it wont let me inside my restricted folder.   goes to an internal 500 error. | 
 
  | 
| Back to top | 
 | 
hackztor
 
 
  Joined: 28 Jan 2006 Posts: 13
 
  | 
 Posted: Fri 28 Apr '06 21:57    Post subject:  | 
     | 
 
  | 
 
My error log reports.
 
 
 
[Fri Apr 28 12:53:39 2006] [error] [client 140.198.156.73] client used wrong authentication scheme: /restricted
 
[Fri Apr 28 12:53:42 2006] [error] [client 140.198.156.73] (9)Bad file descriptor: Could not open password file: (null) | 
 
  | 
| Back to top | 
 | 
Steffen Moderator
 
  Joined: 15 Oct 2005 Posts: 3131 Location: Hilversum, NL, EU
  | 
 Posted: Sat 29 Apr '06 11:16    Post subject:  | 
     | 
 
  | 
 
Here at the the download page I use:
 
 
 <Directory "f:/web/alouf/download/binaries">
 
AuthName "mod_auth_phpBB       ! For registered forum members only !"
 
AuthType Basic
 
require valid-user
 
AuthPhpBBMySQLHost localhost
 
AuthPhpBBMySQLPort 3306
 
AuthPhpBBMySQLDB alouf
 
AuthPhpBBMySQLUser xxx
 
AuthPhpBBMySQLPassword yyy
 
AuthPhpBBPrefix  " "
 
AuthPhpBBMySQLAuthoritative on
 
</Directory>
 
 
 
Steffen | 
 
  | 
| Back to top | 
 | 
Steffen Moderator
 
  Joined: 15 Oct 2005 Posts: 3131 Location: Hilversum, NL, EU
  | 
 Posted: Sat 29 Apr '06 11:18    Post subject:  | 
     | 
 
  | 
 
Maybe you can try to set:
 
 
AuthBasicAuthoritative Off
 
 
It is a new Directive in Apache 2.2
 
 
 
Steffen | 
 
  | 
| Back to top | 
 | 
hackztor
 
 
  Joined: 28 Jan 2006 Posts: 13
 
  | 
 Posted: Wed 03 May '06 9:08    Post subject:  | 
     | 
 
  | 
 
<Directory "F:/Apache2/htdocs/restricted">
 
AuthName "Hackztor.com"
 
AuthType Basic
 
require valid-user 
 
AuthPhpBBMySQLHost localhost
 
AuthPhpBBMySQLPort 3306
 
AuthPhpBBMySQLDB nuke
 
AuthPhpBBMySQLUser ######
 
AuthPhpBBMySQLPassword ####
 
AuthPhpBBPrefix  "phpbb_"
 
AuthPhpBBMySQLAuthoritative on
 
</Directory>
 
 
This is what i have and it still doesnt work.  The login screen comes up but then takes u to an internal server 500 error.  in my error log it states:
 
[Wed May 03 00:03:38 2006] [error] [client 192.168.0.4] (9)Bad file descriptor: Could not open password file: (null)
 
 
 
Im using phpbb 2.0.20.
 
 
www.hackztor.com/restricted | 
 
  | 
| Back to top | 
 | 
Steffen Moderator
 
  Joined: 15 Oct 2005 Posts: 3131 Location: Hilversum, NL, EU
  | 
 Posted: Wed 03 May '06 11:41    Post subject:  | 
     | 
 
  | 
 
Did you try ?  
 
 
AuthName "Hackztor.com" 
 
AuthType Basic 
 
require valid-user
 
AuthBasicAuthoritative Off  
 
...
 
...
 
 
Steffen | 
 
  | 
| Back to top | 
 | 
hackztor
 
 
  Joined: 28 Jan 2006 Posts: 13
 
  | 
 Posted: Wed 03 May '06 17:00    Post subject:  | 
     | 
 
  | 
 
| ya i tried with it off | 
 
  | 
| Back to top | 
 | 
Steffen Moderator
 
  Joined: 15 Oct 2005 Posts: 3131 Location: Hilversum, NL, EU
  | 
 Posted: Wed 03 May '06 19:54    Post subject:  | 
     | 
 
  | 
 
Try:
 
 
<Directory />
 
   ...
 
   ...
 
   AuthBasicAuthoritative Off
 
   ...
 
</Directory>
 
 
Or try to put yor directives in a .htaccess file.
 
 
Steffen | 
 
  | 
| Back to top | 
 | 
hackztor
 
 
  Joined: 28 Jan 2006 Posts: 13
 
  | 
 Posted: Tue 09 May '06 10:08    Post subject:  | 
     | 
 
  | 
 
| ya tried all that still no luck | 
 
  | 
| Back to top | 
 |