I've done a search through the archives, and the only related question I could find didn't include any conf. information. ' I thought I had my httpd.conf configured correctly for Apache::AuthCookieDBI. the same ( well, close to the same ) setup worked for Apache::AuthCookie ....
the error message:
[Thu Mar 11 09:52:39 2004] [crit] [client 24.153.205.228] configuration error: couldn't check user. No user file?: /LOGIN
i've tried the following configuration in the main httpd.conf *and* in the <VirtualHost> section. from reading the archives, the config will only work in the main server section, even though with my current setup, I'd *really* prefer it to work in the <VirtualHost> section.
the relevant config:
PerlSetVar JBGDBI_SecretKeyFile /home/httpd/secure.jbgoodwin.com/keyfile
PerlModule Apache::AuthCookieDBI PerlSetVar JBGPath / PerlSetVar JBGLoginScript /login.pl ### database infos PerlSetVar JBGDBI_DSN "DBI:mysql:database=******" PerlSetVar JBGDBI_User "******" PerlSetVar JBGDBI_Password "********" PerlSetVar JBGDBI_UsersTable "agent" PerlSetVar JBGDBI_UserField "username" PerlSetVar JBGDBI_PasswordField "password"
<Directory /home/httpd/secure.jbgoodwin.com/html> <FilesMatch "login\.(pl|cgi)"> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI allow from all PerlSendHeader On </FilesMatch> </Directory>
# These documents require user to be logged in.
<Location /logintest>
AuthType Apache::AuthCookieDBI
AuthName JBG
PerlAuthenHandler Apache::AuthCookieDBI->authenticate
PerlAuthzHandler Apache::AuthCookieDBI->authorize
require valid-user
</Location>
#
##this is the action of the login.pl script above. <Location /LOGIN> AuthType Apache::AuthCookieDBI AuthName JBG SetHandler perl-script PerlHandler Apache::AuthCookieDBI->login </Location>
-- i've checked that keyfile is 400 ( root read only, per the docs ) -- login.pl has executable permissions ( 755 )
i've tried looking for the error message in the actual code of Apache::AuthCookieDBI, but i can't find it anywhere. what am i doing wrong?
brian
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html