[Plugin: HTTP Authentication] No REMOTE_USER ?
-
Hi,
When I go to /wp-admin/ which redirects to /wp-login.php the http-authentication plugin fails with “ERROR: No user found in server variables.”
I’ve inserted a debugging loop which prints all the env variables seen at that stage, code below:
foreach($_SERVER as $key_name => $key_value) { print $key_name . " = " . $key_value . "<br>"; }This shows that the REMOTE_USER variable is missing (as is AUTH_TYPE).
However, if I put that same code snippet in a getenv.php file in the /wp-admin/ directory and go to it in my web browser, I can see that the REMOTE_USER (and AUTH_TYPE) are correctly set.
Any idea why, when going through wp-login.php the REMOTE_USER variable isn’t available to the http-authentication plugin?
Does something intercept / block it?
Parameters from getenv.php:
REMOTE_PORT = 22925 REMOTE_USER = prk AUTH_TYPE = PUBCOOKii GATEWAY_INTERFACE = CGI/1.1Parameters from within http-authentication.php:
REMOTE_PORT = 14338 GATEWAY_INTERFACE = CGI/1.1Any help gratefully appreciated.
prk.
The topic ‘[Plugin: HTTP Authentication] No REMOTE_USER ?’ is closed to new replies.