how come when I use this example from the docs (in httpd.conf):
Perl
my($uid,$pwd) = My::dbi_pwd_fetch();
$Location{'/foo/bar'}-{PerlSetVar} = [
[ Auth_DBI_username = $uid ],
[ Auth_DBI_password = $pwd ],
];
/Perl
I get:
Undefined subroutine My::dbi_pwd_fetch called at
How do I get the username someone entered in a http authentication prompt?
I got authDBI working, but I can't figure out hot to access the user name which
was passed so that I can use it in further sql-dml statements.
Is there anyway to get AuthDBI to connect on initialization of the web server
like you can with "DBI-connect_on_init(...)"?
I have installed modperl from redhat62 dist, and the apachedbi .87 module. When
I put
PerlModule Apache::DBI
in httpd.conf, apache doesn't start. Any ideas? mod perl looks cool
Embedded Perl version 5.00503 for Apache/1.3.12 (Unix) (Red Hat/Linux)
mod_perl/1.21
Thanks
env: redhat 6.2, apache, modperl installed from rpm. ApacheDBI-0.87 installed.
If I put either
PerlModule Apache::DBI
PerlModule Apache::AuthDBI
in httpd.conf, apache doesn't start, there are no errors to the screen, and there
is nothing in the apache error log. How can I determine why this is
Solved it by installing from source
I have installed modperl from redhat62 dist, and the apachedbi .87 module.
When
I put
PerlModule Apache::DBI
in httpd.conf, apache doesn't start. Any ideas? mod perl looks cool
Embedded Perl version 5.00503 for Apache/1.3.12 (Unix) (Red Hat/Linux)
can someone please post an example of hot use Apache::AuthDBI? The perldoc for it
is vague to me. It says to put all this stuff in httpd.conf and it just generates
errors, i.e. it doesn't have one little working example.
thanks
No, and thanks for the info!
did you try setting
Apache::DBI::DEBUG=1 and
Apache::AuthDBI::DEBUG=1
in your startup.pl
this will enable verbose output in your error_log
HTH
--Geoff
-Original Message-
From: Adam Gotheridge [mailto:[EMAIL PROTECTED]]
Sent: Monday