Hi there,
I have just made a test, and everything seems to be working alright:
--------
validator_mysql.c:0178 ( init_mysql_connection): Connected to
(localhost:3306)
validator.c:0144 (cherokee_validator_parse_basic): Parse basic auth got
user=alo, passwd=12tres45
validator_mysql.c:0259 (cherokee_validator_mysql_check): Query: SELECT
password FROM usuarios WHERE login = 'alo'
validator_mysql.c:0325 (cherokee_validator_mysql_check): Access to user alo
has been granted
--------
Could you please paste you user table structure along with the SQL query you
are using?
cheers,
On 17/06/2010, at 02:36, [email protected] wrote:
> I tried very carefully to follow the steps in the links below, but when a
> user provides a good username and password they get an error: "500 Internal
> Server Error". Am I missing a step? Is there a log that would explain the
> error? I don't get this error with other types of authentication, just MySQL.
>
>
> Here are the directions that I followed, but that give the error.
> http://www.cherokee-project.com/doc/cookbook_authentication.html
> http://www.cherokee-project.com/doc/modules_validators_mysql.html
>
> -----Original Message-----
> From: Stefan de Konink <[email protected]>
> To: [email protected]
> Sent: Wed, Jun 16, 2010 4:22 pm
> Subject: Re: [Cherokee] Authentication from database
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Op 16-06-10 12:39,
> [email protected]
> schreef:
> > Could you please help me find documentation on how to get Cherokee
> > to authenticate a user against a MySQL database?
> >
> > These links do not explain this, or at least I am missing something
> > because I cannot get it to work!
> >
> http://www.cherokee-project.com/doc/cookbook_authentication.html
>
> >
> http://www.cherokee-project.com/doc/modules_validators_mysql.html
>
> >
> > Thank you helping if you get the chance.
>
> What did you try, and what doesn't work :)
>
>
> Stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.15 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -
> http://enigmail.mozdev.org/
>
>
> iEYEAREKAAYFAkwZJIwACgkQYH1+F2Rqwn1yqgCfYJFoycHGp4TSdVDr2UAwxmMR
> r4EAnijSHAJlUitKk1qETMxWQbWIy1b5
> =yEYC
> -----END PGP SIGNATURE-----
> _______________________________________________
> Cherokee mailing list
>
> [email protected]
> http://lists.octality.com/listinfo/cherokee
> _______________________________________________
> Cherokee mailing list
> [email protected]
> http://lists.octality.com/listinfo/cherokee
--
Octality
http://www.octality.com/
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee