Øyvind Gjerstad wrote:
> 
> Geoffrey Young wrote:
> 
> >>[Fri Jan  4 14:23:46 2002] [error] credential_0 ogj
> >>[Fri Jan  4 14:23:46 2002] [error] credential_1 xxxxxxx
> >>[Fri Jan  4 14:23:46 2002] [error] ses_key
> >>ogj:2002-01-04-14-23-46:2002-01-05-14
> >>-23-46:54f7553ccb96d3af70abe449f053ee3d
> >>[Fri Jan  4 14:23:46 2002] [error] auth_type Apache::AuthCookieDBI
> >>
> >
> > the AuthType setting should be the name of the class that inherits
> > from Apache::AuthCookie (or Apache::AuthCookieDBI I suppose, I've
> > never used it)
> >
> > for instance
> >
> >     PerlSetVar PrisInformasjonPath /
> >     PerlSetVar PrisInformasjonLoginScript /login.html
> >     PerlSetVar AuthCookieDebug 3
> >
> >     <Location /tgweb/protected>
> >       AuthType PrisInformasjon::Authenticate
> >       AuthName PrisInformasjon
> >       PerlAuthenHandler PrisInformasjon::Authenticate->authenticate
> >       Require vaild-user
> 
> Hmm. I thought I didn't need to subclass AuthCookieDBI. I thought that I
> should be able to just configure that to authenticate to a database
> (that part works, as far as I can tell), and write a login-script (which
> I have done).

ah, you are right.  I don't use Apache::AuthCookieDBI, and apparently
it works slightly differently from Apache::AuthCookie.

anyway, CC'd to the list so perhaps someone more familiar can see your
httpd.conf

--Geoff

> 
> 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>
> 
> >>[Fri Jan  4 14:23:46 2002] [error] auth_name PrisInformasjon
> >>[Fri Jan  4 14:23:46 2002] [error] ses_key_cookie
> >>[Fri Jan  4 14:23:46 2002] [error] uri /tgweb/protected/index.html
> 
> --
> Ø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.
> **********************************************************************

Reply via email to