Hi,

I�m trying to install Apache in a Linux Machine, with mod_perl and
AuthenNTLM. I want to authenticate users from a Windows 2000 domain. I don�t
want them to be prompted for their username and password. These are the
softwares I have installed: Red Hat Linux 8.0, Samba -2.2.8(use winbind for
authentication), Apache 2.0.45, mod_perl-1.99_09, Apache-AuthenNTLM-023. My
test directory is configured like this: 
                        Alias /ntlm/ "/home/httpd/ntlm/"
                        <Directory "/home/httpd/ntlm/">
                         PerlAuthenHandler Apache::AuthenNTLM
                         AuthType  ntlm,basic
                         AuthName  NTLM-AREA
                         Require valid-user
                         PerlAddVar ntdomain "sede  BATUTAS"
                         PerlSetVar defaultdomain sede
                         PerlSetVar ntlmdebug 1
                        </Directory>
Also I have included in httpd.conf the following statements for mod_perl
                        LoadModule perl_module  modules/mod_perl.so
                        PerlRequire /home/httpd/perl/startup.pl
                        PerlSwitches -wT
When I try to access the URL the following error is received by IE 6.0
browser:
                        Internal Server Error
                        The server encountered an internal error or
misconfiguration and was unable to complete your request.
                        Please contact the server administrator,
[EMAIL PROTECTED] and inform them of the time the error occurred, and
anything you might have done that may have caused the error.
                        More information about this error may be available
in the server error log.
                        Apache/2.0.45 (Unix) mod_perl/1.99_09 Perl/v5.8.0
mod_ssl/2.0.45 OpenSSL/0.9.6b Server at catapulta Port 80

The error loged in error_log is:
                        Use of uninitialized value.
                        [Fri May 30 07:24:37 2003] [error] [client
192.168.1.73] Can't call method "connection" on an undefined value at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/AuthenNTLM.pm
line 480.

Line 480 in AuthenNTLM.p is the following:
                        sub handler ($$)
                            {
                            my ($class, $r) = @_ ;
                            my $type ;
                            my $nonce = '' ;
                            my $self ;
                            my $conn = $r -> connection ;
                            my $connhdr = $r -> header_in ('Connection') ;
(LINE 480 REPORTED IN THE BROWSWER)
                            my $fh = select (STDERR) ;
                            $| = 1 ;
                            select ($fh) ;


I have also noticed that the handle module AuthenNTLM.pm (line 32) was
trying to use Apache::Constants. This module does not exist. So, I changed
it to Apache::Const. After that I have been faced to the error in line 480.
  
I am not expert neither in Linux nor in Perl and I would apreciate any
sugestions.
 

Thanks,
                Luiz Carlos


Reply via email to