Do you have this in httpd.conf (or mod_perl.conf)
PerlSetVar BuscaWAPDBI_SecretKeyFile /home/fxn/prj/bw/buscawap/etc/auth.key ? -Fran F.Xavier Noria wrote: > I am having problems configuring Apache::AuthCookieDBI and am a bit > lost, since it seems there is something wrong with the secret key > file I cannot see, I attach below the configuration in case it can > help. I have checked the permissions of the file (the server runs > in by box as "fxn"): > > $ ls -la /home/fxn/prj/bw/buscawap/etc/auth.key > -rw------- 1 fxn 12 May 2 19:20 /home/fxn/prj/bw/buscawap/etc/auth.key > > If I request "/docs" these messages appear in error_log: > > [Thu May 2 20:07:19 2002] [error] access to /login failed for 127.0.0.1, reason: >Apache::AuthCookieDBI: didn't have the secret key for auth realm Busc > aWAP > [Thu May 2 20:07:21 2002] [error] access to /docs failed for 127.0.0.1, reason: >Apache::AuthCookieDBI: didn't the secret key from for auth realm Busca > WAP > > Any hint on what could I be doing wrong? > > -- fxn > > > PerlModule Apache::AuthCookieDBI > > PerlSetVar BuscaWAPPath / > PerlSetVar BuscaWAPLoginScript "/cgi/login.pl" > > # These must be set > PerlSetVar BuscaWAPDBI_DSN "dbi:Oracle:BW_CATALOG" > PerlSetVar BuscaWAPDBI_SecretKeyFile "/home/fxn/prj/bw/buscawap/etc/auth.key" > > # These are optional, the module sets sensible defaults. > PerlSetVar BuscaWAPDBI_User "wap" > PerlSetVar BuscaWAPDBI_Password "XXXXXXXXXXXXXXXXX" > PerlSetVar BuscaWAPDBI_UsersTable "view_active_users" > PerlSetVar BuscaWAPDBI_UserField "login" > PerlSetVar BuscaWAPDBI_PasswordField "password" > PerlSetVar BuscaWAPDBI_CryptType "none" > PerlSetVar BuscaWAPDBI_GroupsTable "view_active_users" > PerlSetVar BuscaWAPDBI_GroupField "rol" > PerlSetVar BuscaWAPDBI_GroupUserField "login" > PerlSetVar BuscaWAPDBI_EncryptionType "none" > PerlSetVar BuscaWAPDBI_SessionLifetime 00-24-00-00 > > <Location /login> > AuthType Apache::AuthCookieDBI > AuthName BuscaWAP > SetHandler perl-script > PerlHandler Apache::AuthCookieDBI->login > </Location> > > Alias /cgi /home/fxn/prj/bw/buscawap/www/cgi/ > PerlModule Apache::Registry > > <Location /cgi> > SetHandler perl-script > PerlHandler Apache::Registry > Options +ExecCGI > </Location> > > <Location /docs> > AuthType Apache::AuthCookieDBI > AuthName BuscaWAP > PerlAuthenHandler Apache::AuthCookieDBI->authenticate > PerlAuthzHandler Apache::AuthCookieDBI->authorize > require valid-user > SetHandler perl-script > PerlHandler BuscaWAP::Apache::Docs > </Location>