Re: Apache::AuthenNTLM problems

2003-06-29 Thread Shannon Eric Peevey
Brett Hales wrote:

On Fri, 2003-06-13 at 01:53, Luiz Carlos (Paulista) wrote:
 

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

I am not expert neither in Linux nor in Perl and I would apreciate any sugestions.

 

I have this successfully working with Mod_Perl 1.27

When you get this working can you please test something for me, change
your Windows password to include a : (colon). I believe that there is a
bug in the AuthenNTLM module and would like somebody else to verify
this.
 

Thanks,
Luiz Carlos
-8-- Start Bug Report 8--
1. Problem Description:
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.
 

2. Used Components and their Configuration:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
 MP_AP_PREFIX   = /usr/local/apache2
 MP_COMPAT_1X   = 1
 MP_GENERATE_XS = 1
 MP_LIBNAME = mod_perl
 MP_USE_DSO = 1
 MP_USE_STATIC  = 1
*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.46
Server built:   Jun  2 2003 11:21:42
Server's Module Magic Number: 20020903:3
Architecture:   32-bit
Server compiled with
-D APACHE_MPM_DIR=server/mpm/prefork
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT=/usr/local/apache2
-D SUEXEC_BIN=/usr/local/apache2/bin/suexec
-D DEFAULT_PIDLOG=logs/httpd.pid
-D DEFAULT_SCOREBOARD=logs/apache_runtime_status
-D DEFAULT_LOCKFILE=logs/accept.lock
-D DEFAULT_ERRORLOG=logs/error_log
-D AP_TYPES_CONFIG_FILE=conf/mime.types
-D SERVER_CONFIG_FILE=conf/httpd.conf
*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
 Platform:
   osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi 
   uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 2002 i686 i686 i386 gnulinux '
   config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr'
   hint=recommended, useposix=true, d_sigaction=define
   usethreads=define use5005threads=undef 

Re: Apache::AuthenNTLM problems

2003-06-29 Thread Brett Hales
On Mon, 2003-06-30 at 09:48, Shannon Eric Peevey wrote:
 Brett Hales wrote:
 
 On Fri, 2003-06-13 at 01:53, Luiz Carlos (Paulista) wrote:
   
 
 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
 
 I am not expert neither in Linux nor in Perl and I would apreciate any sugestions.
  
   
 
 
 I have this successfully working with Mod_Perl 1.27
 
 When you get this working can you please test something for me, change
 your Windows password to include a : (colon). I believe that there is a
 bug in the AuthenNTLM module and would like somebody else to verify
 this.
 
 
   
 
 Thanks,
Luiz Carlos
 
 
 -8-- Start Bug Report 8--
 1. Problem Description:
 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.
   
 
 
 2. Used Components and their Configuration:
 
 *** using lib/Apache/BuildConfig.pm
 *** Makefile.PL options:
   MP_AP_PREFIX   = /usr/local/apache2
   MP_COMPAT_1X   = 1
   MP_GENERATE_XS = 1
   MP_LIBNAME = mod_perl
   MP_USE_DSO = 1
   MP_USE_STATIC  = 1
 
 
 *** /usr/local/apache2/bin/httpd -V
 Server version: Apache/2.0.46
 Server built:   Jun  2 2003 11:21:42
 Server's Module Magic Number: 20020903:3
 Architecture:   32-bit
 Server compiled with
  -D APACHE_MPM_DIR=server/mpm/prefork
  -D APR_HAS_SENDFILE
  -D APR_HAS_MMAP
  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
  -D APR_USE_SYSVSEM_SERIALIZE
  -D APR_USE_PTHREAD_SERIALIZE
  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
  -D APR_HAS_OTHER_CHILD
  -D AP_HAVE_RELIABLE_PIPED_LOGS
  -D HTTPD_ROOT=/usr/local/apache2
  -D SUEXEC_BIN=/usr/local/apache2/bin/suexec
  -D DEFAULT_PIDLOG=logs/httpd.pid
  -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
  -D DEFAULT_LOCKFILE=logs/accept.lock
  -D DEFAULT_ERRORLOG=logs/error_log
  -D AP_TYPES_CONFIG_FILE=conf/mime.types
  -D SERVER_CONFIG_FILE=conf/httpd.conf
 
 
 *** /usr/bin/perl -V
 Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
   Platform:
 osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi 
 uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 
  edt 2002 i686 i686 i386 gnulinux '
 config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 
  -Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. 
  -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr 
  -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads 

Apache::AuthenNTLM problems

2003-06-12 Thread Luiz Carlos (Paulista)
 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
 
 I am not expert neither in Linux nor in Perl and I would apreciate any sugestions.
  
 
 Thanks,
   Luiz Carlos
 
 
 -8-- Start Bug Report 8--
 1. Problem Description:
 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.
   
 
 
 2. Used Components and their Configuration:
 
 *** using lib/Apache/BuildConfig.pm
 *** Makefile.PL options:
   MP_AP_PREFIX   = /usr/local/apache2
   MP_COMPAT_1X   = 1
   MP_GENERATE_XS = 1
   MP_LIBNAME = mod_perl
   MP_USE_DSO = 1
   MP_USE_STATIC  = 1
 
 
 *** /usr/local/apache2/bin/httpd -V
 Server version: Apache/2.0.46
 Server built:   Jun  2 2003 11:21:42
 Server's Module Magic Number: 20020903:3
 Architecture:   32-bit
 Server compiled with
  -D APACHE_MPM_DIR=server/mpm/prefork
  -D APR_HAS_SENDFILE
  -D APR_HAS_MMAP
  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
  -D APR_USE_SYSVSEM_SERIALIZE
  -D APR_USE_PTHREAD_SERIALIZE
  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
  -D APR_HAS_OTHER_CHILD
  -D AP_HAVE_RELIABLE_PIPED_LOGS
  -D HTTPD_ROOT=/usr/local/apache2
  -D SUEXEC_BIN=/usr/local/apache2/bin/suexec
  -D DEFAULT_PIDLOG=logs/httpd.pid
  -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
  -D DEFAULT_LOCKFILE=logs/accept.lock
  -D DEFAULT_ERRORLOG=logs/error_log
  -D AP_TYPES_CONFIG_FILE=conf/mime.types
  -D SERVER_CONFIG_FILE=conf/httpd.conf
 
 
 *** /usr/bin/perl -V
 Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
   Platform:
 osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi 
 uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 
 2002 i686 i686 i386 gnulinux '
 config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost 
 [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr 
 -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib 
 -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db 
 -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio 
 -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr'
 hint=recommended, useposix=true, d_sigaction=define
 usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
 useperlio=define d_sfio=undef 

Re: Apache::AuthenNTLM problems

2003-06-12 Thread Stas Bekman
Luiz Carlos (Paulista) wrote:
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

I am not expert neither in Linux nor in Perl and I would apreciate any sugestions.

Thanks,
Luiz Carlos
-8-- Start Bug Report 8--
1. Problem Description:
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.
Luiz, you are using a mod_perl 1.0 module that wasn't ported to work with 
mod_perl 2.0. You should either attempt to port it by yourself and submit the 
patches to the owner, using these documents:
http://perl.apache.org/docs/2.0/user/porting/porting.html
http://perl.apache.org/docs/2.0/user/porting/compat.html
or ask the author to do the porting.

2. Used Components and their Configuration:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
 MP_AP_PREFIX   = /usr/local/apache2
 MP_COMPAT_1X   = 1
 MP_GENERATE_XS = 1
 MP_LIBNAME = mod_perl
 MP_USE_DSO = 1
 MP_USE_STATIC  = 1
*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.46
Server built:   Jun  2 2003 11:21:42
Server's Module Magic Number: 20020903:3
Architecture:   32-bit
Server compiled with
-D APACHE_MPM_DIR=server/mpm/prefork
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT=/usr/local/apache2
-D SUEXEC_BIN=/usr/local/apache2/bin/suexec
-D DEFAULT_PIDLOG=logs/httpd.pid
-D DEFAULT_SCOREBOARD=logs/apache_runtime_status
-D DEFAULT_LOCKFILE=logs/accept.lock
-D DEFAULT_ERRORLOG=logs/error_log
-D AP_TYPES_CONFIG_FILE=conf/mime.types
-D SERVER_CONFIG_FILE=conf/httpd.conf
*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
 Platform:
   osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi 
   uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 2002 i686 i686 i386 gnulinux '
   config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr'
   hint=recommended, useposix=true, d_sigaction=define
   usethreads=define 

Re: Apache::AuthenNTLM problems

2003-06-12 Thread Brett Hales
On Fri, 2003-06-13 at 01:53, Luiz Carlos (Paulista) wrote:
  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
  
  I am not expert neither in Linux nor in Perl and I would apreciate any sugestions.
   

I have this successfully working with Mod_Perl 1.27

When you get this working can you please test something for me, change
your Windows password to include a : (colon). I believe that there is a
bug in the AuthenNTLM module and would like somebody else to verify
this.


  
  Thanks,
  Luiz Carlos
  
  
  -8-- Start Bug Report 8--
  1. Problem Description:
  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.

  
  
  2. Used Components and their Configuration:
  
  *** using lib/Apache/BuildConfig.pm
  *** Makefile.PL options:
MP_AP_PREFIX   = /usr/local/apache2
MP_COMPAT_1X   = 1
MP_GENERATE_XS = 1
MP_LIBNAME = mod_perl
MP_USE_DSO = 1
MP_USE_STATIC  = 1
  
  
  *** /usr/local/apache2/bin/httpd -V
  Server version: Apache/2.0.46
  Server built:   Jun  2 2003 11:21:42
  Server's Module Magic Number: 20020903:3
  Architecture:   32-bit
  Server compiled with
   -D APACHE_MPM_DIR=server/mpm/prefork
   -D APR_HAS_SENDFILE
   -D APR_HAS_MMAP
   -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
   -D APR_USE_SYSVSEM_SERIALIZE
   -D APR_USE_PTHREAD_SERIALIZE
   -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
   -D APR_HAS_OTHER_CHILD
   -D AP_HAVE_RELIABLE_PIPED_LOGS
   -D HTTPD_ROOT=/usr/local/apache2
   -D SUEXEC_BIN=/usr/local/apache2/bin/suexec
   -D DEFAULT_PIDLOG=logs/httpd.pid
   -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
   -D DEFAULT_LOCKFILE=logs/accept.lock
   -D DEFAULT_ERRORLOG=logs/error_log
   -D AP_TYPES_CONFIG_FILE=conf/mime.types
   -D SERVER_CONFIG_FILE=conf/httpd.conf
  
  
  *** /usr/bin/perl -V
  Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
  osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi 
  uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 
  2002 i686 i686 i386 gnulinux '
  config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost 
  [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr 
  -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr 
  -Duseshrplib -Dusethreads