harilaos ([EMAIL PROTECTED]) said something to this effect on 01/30/2001:
> I want to create a username and password when a user enters my site,
> then pass these values to apache to authenticate. Then i could
> have the REMOTE_USER variable available throught the users
> stay at my site.
You want to create them? Do you mean create a new session for
each user? You might want to look into Apache::Session for this;
it has a customizable session key generator.
Here is a simple example, generating a simple session id. Run this
as a PerlAuthenHandler:
package Apache::SillyAuthen;
use Apache::Constants qw(OK);
use MD5;
sub handler {
my $r = shift;
# Make a random "username". This can be a call to any
# function, etc, that can generate a username
my $session = MD5->hexhash($r->get_remote_host . time . {});
# Set the username in the conn_rec
$r->connection->user($session);
# Set the REMOTE_USER env variable
$r->subprocess_env('REMOTE_USER', $session);
# Be sure to tell Apache that the authentication handler did
# its thing!
return OK;
}
Is that what you mean?
(darren)
--
It's not that things are getting worse, it's just that news reporting is
getting better.