hello,
I followed the thread :
http://www.gossamer-threads.com/archive/mod_perl_C1/modperl_F7/mod_perl_2.0_question_about_$r-%3Econnection-%3Eauth_type_P51273/#51273
While using module AuthCookieLDAP based on AuthCookie I got exactly the same error:
Use of uninitialized value. [Wed Jul 23 16:25:54 2003] [error] [client 127.0.0.1] Can't locate object method "auth_type" via package "Apache::Connection" at /usr/lib/perl5/site_perl/5.8.0/Apache/AuthCookie.pm line 182.!, referer: http://localhost/ldap
I am trying to Authenticate HTTP connection to an openldap Server, using AuthCookie and AuthCookieLDAP, both written for apache 1.3.X and mod_perl 1.X. Here I use Apache 2.0.40 and mod_perl-1.99_07-5 (which is supposed to be mod_perl 2.0 I understood !?) on a RedHat 9 system.
Although I added "PerlModule Apache::compat" and "PerlOptions +GlobalRequest" in httpd.conf , I still get the above mentioned error :-(
Any help ? Thanks.
PS: The author of AuthCookie is about to port its module to mod_perl 2.0, maybe that would solve the problem, but when, and why doesn't it work now with Apache::compat ?
http://perl.apache.org/docs/2.0/user/porting/compat.html#C__connection_E_gt_auth_type_
Have you tried the latest cvs of mod_perl2? Apache::compat provides the necessary code there:
package Apache::Connection;
# auth_type and user records don't exist in 2.0 conn_rec struct # 'PerlOptions +GlobalRequest' is required sub auth_type { shift; Apache->request->ap_auth_type(@_) } sub user { shift; Apache->request->user(@_) }
For more info see: http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com