logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_auth_phpbb
Author
hackztor



Joined: 28 Jan 2006
Posts: 13

PostPosted: Fri 28 Apr '06 20:10    Post subject: mod_auth_phpbb Reply with quote

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

PostPosted: Fri 28 Apr '06 20:16    Post subject: Reply with quote

nm i got it.
Back to top
hackztor



Joined: 28 Jan 2006
Posts: 13

PostPosted: Fri 28 Apr '06 20:48    Post subject: Reply with quote

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

PostPosted: Fri 28 Apr '06 21:57    Post subject: Reply with quote

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: 3093
Location: Hilversum, NL, EU

PostPosted: Sat 29 Apr '06 11:16    Post subject: Reply with quote

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: 3093
Location: Hilversum, NL, EU

PostPosted: Sat 29 Apr '06 11:18    Post subject: Reply with quote

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

PostPosted: Wed 03 May '06 9:08    Post subject: Reply with quote

<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: 3093
Location: Hilversum, NL, EU

PostPosted: Wed 03 May '06 11:41    Post subject: Reply with quote

Did you try ?

AuthName "Hackztor.com"
AuthType Basic
require valid-user
AuthBasicAuthoritative Off
...
...

Steffen
Back to top
hackztor



Joined: 28 Jan 2006
Posts: 13

PostPosted: Wed 03 May '06 17:00    Post subject: Reply with quote

ya i tried with it off
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Wed 03 May '06 19:54    Post subject: Reply with quote

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

PostPosted: Tue 09 May '06 10:08    Post subject: Reply with quote

ya tried all that still no luck
Back to top


Reply to topic   Topic: mod_auth_phpbb View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules