1
ChrisB
Using xoops db with htaccess
  • 2003/10/28 1:31

  • ChrisB

  • Just popping in

  • Posts: 6

  • Since: 2003/7/17


Hi all, I am trying to figure out how to authenticate against the XOOPS database with htaccess. I have little experience with this and it has been giving me fits.. Here is what I am using (or trying to). It appears to be working, but my suspicion is that its failing on the encrypted password type. Any help would be MOST appreciated..

AuthName "Enter Password"
AuthType Basic
AuthGroupFile 
/dev/null
AuthMySQLHost localhost
AuthMySQLDB xoops
AuthMySQLUserTable xoops_users
AuthMySQLUser mysql_user
AuthMySQLPassword mysql_pass
AuthMySQLNameField uname
AuthMySQLPasswordField pass
AuthMySQLAuthoritative On
require valid-user

2
ChrisB
Re: Using xoops db with htaccess
  • 2003/10/28 14:59

  • ChrisB

  • Just popping in

  • Posts: 6

  • Since: 2003/7/17


bump

3
ChrisB
Re: Using xoops db with htaccess
  • 2003/10/29 2:12

  • ChrisB

  • Just popping in

  • Posts: 6

  • Since: 2003/7/17


Well, I doubt anyone here has the "expertise" to do this... since I just found out that supposedly the implementations of MD5 passwords by php and apache are different and incompatible.. So... If anyone has any ideas of how I can use the XOOPS user database to authenticate using .htaccess files, I am all ears.. not holding my breath..

Thanks anyway.

4
onokazu
Re: Using xoops db with htaccess
  • 2003/10/29 6:02

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Try with the following line

AuthMySQLMD5Passwords On

5
ChrisB
Re: Using xoops db with htaccess
  • 2003/10/31 13:00

  • ChrisB

  • Just popping in

  • Posts: 6

  • Since: 2003/7/17


onokazu,

I tried adding that line, but all I get is a server error. Both error and .htaccess file are below.

Quote:

Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster
Error 500



AuthName "Enter Password"
AuthType Basic
AuthGroupFile 
/dev/null
AuthMySQLMD5Passwords On
AuthMySQLHost localhost
AuthMySQLDB xoops
AuthMySQLUserTable xoops_users
AuthMySQLUser sqluser
AuthMySQLPassword sqlpassword
AuthMySQLNameField uname
AuthMySQLPasswordField pass
AuthMySQLAuthoritative On
require valid-user


thanks for the help though..

Login

Who's Online

213 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 213


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits