Hi - apologies for the length of this,

I am writing an Apache/modperl based Helpdesk system which requires user
authorization before access is allowed. I would like to have either a
specific username/password login or a guest login (e.g username guest,
password guest). I have this working ok - I'm using AuthLDAP to
authenticate the username/passwords against an LDAP server and everything
works ok - when you try and access the protected URL you get a dialog box
popping up requesting the username/password.

What I would like to do however is to allow people to login as guest
without having to enter a username/password, and I am unclear as to how
to do this. 

Originally I was using the TicketAccess.pm etc modules from the mod_perl
book, but I ran into the "cannot call register_cleanup on an undefined
value" problem with CGI::Cookie. This only happened on some machines,
a development RH6.1 machine was ok, as was a production RH6.0 machine, but
then a different RH6.1 machine gave the problem - configured as far as
tell exactly the same (and I configured all three !). Thus I stopped using
TicketAccess.pm and just used AuthLDAP. I searched the archives of this
list and found reports of the same problem but none of the solutions
seemed to work for me.

I have tried various things such as writing a PerlTransHandler which
looks for request of the form 
/guest?page=/helpdesk&user=guest&passwd=guest  and then creates an
authentication header from the user/passwd info, users $r->header_in to
add the header and then uses $r->uri to rewrite the uri as $page. ($r is
the Apache->request object). However whilst this does redirect to
/helpdesk it doesn't prevent the browser from asking for the
authorization.

I may be going about this all wrong - but any ideas ?

Many thanks,

Jeremy
-- 
[EMAIL PROTECTED] | (work) 01223 221402 (fax) 01223 362616
Unix Support Engineer (CCSA) - British Antarctic Survey
#include <disclaimer.std>

Reply via email to