Hmmm. More information. The problem is in registering the users, I
think. Running "select * from user;" in MySQL returns only the users
that I have manually created.
On 12/21/06, J Wolfgang Goerlich <jwgoerlich(a)gmail.com> wrote:
Oops, I
probably should have told you to make sure you declare the
global variable before you use it.
Oh! Yes, of course, the value needs to be global in order for the
other modules to access it. Made the change and verified the
'Auth_remote_user_hook' is called. That is one step forward.
Now, the web page does not load. It gets into a continuous redirection
loop. If I remove the redirection code (see below), then it comes back
to the "Login Required" prompt.
The fun continues.
J Wolfgang Goerlich
// if it worked: refer to login page, otherwise, exit
header( "Location: http" .
(isset($_SERVER['HTTPS'])
&& $_SERVER['HTTPS'] == "on" ? "s" : "")
.
"://" . $_SERVER['SERVER_NAME'] . ":" .
$_SERVER['SERVER_PORT'] .
( isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI']
: "/" .
( isset($_SERVER['URL']) ? $_SERVER['PATH_INFO'] .
( $_SERVER['QUERY_STRING'] ? "?" . $_SERVER['QUERY_STRING'] :
"" )
: "" )
)
);