[Apache2] mod_auth_mysql werkt niet met MD5-passwords?

Pagina: 1
Acties:

  • Pelle
  • Registratie: Januari 2001
  • Laatst online: 21:31

Pelle

🚴‍♂️

Topicstarter
Ik wilde mod_auth_mysql wel eens uitproberen, en heb toen even wat zitten proberen. Het werkt perfect als ik met plain-text passwords werk, maar dat wil ik natuurlijk niet. Gebruik ik echter een MD5 hash dan werkt het niet.

Dit staat in m'n httpd.conf:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<Directory "/path/naar/directory">
 AuthName "Backoffice Login"
 AuthType Basic
 AuthMySQLHost 12.34.56.789
 AuthMySQLDB test
 AuthMySQLUserTable user_table
 AuthMySQLUser testuser
 AuthMySQLPassword testpass
 AuthMySQLNameField email
 AuthMySQLPasswordField password
 AuthMySQLCryptedPasswords Off
 AuthMySQLScrambledPasswords Off
 AuthMySQLMD5Passwords On
 AuthMySQLKeepAlive Off
 AuthMySQLAuthoritative On
 AuthMySQLNoPasswd Off
 require valid-user
</Directory>


Ik heb dus een tabel, user_table, waar m'n gegevens in staan. Het veld 'email' bevat de username, het veld 'password' een md5-hash van het password.

Dit werkt dus niet, maar als ik er dit van maak:

code:
1
 AuthMySQLPasswordField plaintextpass


..dan werkt het wel? Het veld 'plaintextpass' is dus het wachtwoord dat niet gehashed is met MD5.

Iemand enig idee wat ik fout doe?

/edit
server is overigens Apache 2.0

[ Voor 3% gewijzigd door Pelle op 21-08-2003 11:53 ]


  • Twilight
  • Registratie: December 2000
  • Laatst online: 09-03 21:34
AuthMySQLCryptedPasswords op ON zetten?
If your passwords are scrambled, set AuthMySQLScrambledPasswords to On.
And due to popular demand, we can also support MD5 digested passwords.
If your passwords are MD5, set AuthMySQLMD5Passwords to On.
offtopic:
20 sec. googlen :P


http://modauthmysql.sourceforge.net/README

[ Voor 9% gewijzigd door Twilight op 21-08-2003 13:54 ]

www.nanon.nl


  • Pelle
  • Registratie: Januari 2001
  • Laatst online: 21:31

Pelle

🚴‍♂️

Topicstarter
AuthMySQLCryptedPasswords had ik ook al op On gezet. Heb zo'n beetje elke combinatie van settings geprobeerd, voor ik hier dit topic opende. En die readme op sourceforge heb ik ook gelezen ja :)

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

-> NOS op verzoek

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz