Re: [users@httpd] use cookie value as auth username

2018-11-01 Thread Jesse Norell
For the archives, should someone comes across this, the solution I found was to use mod_auth_env, which worked to set REMOTE_USER from a cookie value so AuthzDBDQuery could use that in the query. From my previous contrived example, it would look like: SetEnvIf Cookie "PHPSESSID=([^ ;]+)"

Re: [users@httpd] use cookie value as auth username

2018-10-01 Thread Jesse Norell
I'm still interested in any ideas to try to set REMOTE_USER from a cookie value. AuthBasicFake sounds like it would work, but when I use it authz_dbd still complains: AH00027: No authentication done but request not allowed without authentication for /whatever/file.txt. Authentication not

[users@httpd] use cookie value as auth username

2018-09-25 Thread Jesse Norell
Hello, I'm trying to use an authz_dbd query to authorize based on the value of a cookie (ie. if PHPSESSID cookie is set, a db query can test if it should be authorized). It seems the only parameter AUTHzDBDQuery will supply to the sql query is the username in place of %s; this could work if I