Charles Day wrote: > key line must come first. I used Portal instead of your PrisInformasjon, > but you get the idea.
I tried that, but it made no difference. I must be doing something wrong. I have now tried with a very similar setup on my linux box with apache 1.3.22, mod_perl 1.26 and all other modules fully up to date. No success. I rewrote my login-script to use plain perl instead of embperl. No success. Any other ideas? What should I get with lwp-request? I currently get this: <HTML> <HEAD><TITLE>An Error Occurred</TITLE></HEAD> <BODY> <H1>An Error Occurred</h1> 403 Forbidden </BODY> </HTML> I thought I should get the login-script output here? In a browser this seemmingly works. How can I test the redirect/cookie stuff? > > # key line must come first > PerlSetVar PortalDBI_SecretKeyFile /somewhere/secured.key > > PerlModule Apache::AuthCookieDBI > PerlSetVar PortalPath / > PerlSetVar PortalLoginScript /login.pl > PerlSetVar AuthCookieDebug 1 > PerlSetVar PortalDomain .mydomain.com > PerlSetVar PortalDBI_DSN 'dbi:Pg:host=someserver port=5432 dbname=somedb' > PerlSetVar PortalDBI_User "username" > PerlSetVar PortalDBI_Password "**********" > PerlSetVar PortalDBI_UsersTable "table" > PerlSetVar PortalDBI_UserField "userid" > PerlSetVar PortalDBI_PasswordField "passwd" > PerlSetVar PortalDBI_SessionLifeTime 00-12-00-00 > > FilesMatch "\.pl"> > AuthType Apache::AuthCookieDBI > AuthName Portal > SetHandler perl-script > PerlHandler Apache::Registry > Options +ExecCGI > PerlSendHeader On > </FilesMatch> > > # login.pl > <Files LOGIN> > AuthType Apache::AuthCookieDBI > AuthName Portal > SetHandler perl-script > PerlHandler Apache::AuthCookieDBI->login > </Files> > > # website. > <Directory /home/httpd/html/secured> > PerlSetVar PortalDomain .mydomain.com > PerlSetVar PortalLoginScript /login.pl > AuthType Apache::AuthCookieDBI > AuthName Portal > PerlAuthenHandler Apache::AuthCookieDBI->authenticate > PerlAuthzHandler Apache::AuthCookieDBI->authorize > require valid-user > </Directory> > >>Here are the relevant parts (I think) from httpd.conf: >> >>PerlSetVar PrisInformasjonPath / >>PerlSetVar PrisInformasjonLoginScript /wwwappl/login.epl >>PerlSetVar PrisInformasjonDomain .tollpost.no >>PerlSetVar PrisInformasjonDBI_DSN "DBI:Informix:testogj1" >>PerlSetVar PrisInformasjonDBI_SecretKeyFile /etc/opt/apache/secret.key >>PerlSetVar PrisInformasjonDBI_UserField "username" >>PerlSetVar AuthCookieDebug 3 >> >>PerlModule Apache::AuthCookieDBI >> >><Directory "/opt/www/tgweb/protected/"> >> AuthType Apache::AuthCookieDBI >> AuthName PrisInformasjon >> PerlAuthenHandler Apache::AuthCookieDBI->authenticate >> PerlAuthzHandler Apache::AuthCookieDBI->authorize >> require valid-user >></Directory> >> >><Files LOGIN> >> AuthType Apache::AuthCookieDBI >> AuthName PrisInformasjon >> SetHandler perl-script >> PerlHandler Apache::AuthCookieDBI->login >></Files> >> -- Øyvind ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. (mailto:[EMAIL PROTECTED]) This footnote also confirms that this email message has been swept by viruscheckers for the presence of computer viruses. **********************************************************************