httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Woodlock" <ad...@ciscohire.com>
Subject Re: [users@httpd] Pls help: double slash '//' behind the domain name
Date Wed, 14 Jan 2004 12:00:42 GMT
Hi Robert

Thanks for your reply.
Sa1120 is a web appliance server built HP,  Intel also have one called the
1020 which is the same as HP, and the most well know are sun Cobalt range.
HP released this model 2 years and have never released one update, which I
think is a total joke.  The server OS was based around a Redhat 6.2 server
installation, allot main packaged such as apache, sendmail and various other
have to rebuilt and packaged to included there patches etc.

As stated before because I have been hacked 3 time with hacker getting root
access and screwing it right up I took upon myself to upgrade the base OS
and packages to redhat 8.  The apache is still the old version 1.3.1.2  from
previous installation.  In order to give the appliance it functionality to
maintain through the web gui there all loads of script written in CGI and
perl.  As stated  the previous perl version was 5.000503.

All the other scripts seems to work and will compile without any issues,


However when i try to start the http-admin process from /etc.init.d i get
this
./httpd-admin start: httpd-admin could not be started
[Tue Jan 13 13:48:03 2004] [error] Can't locate lib.pm in @INC (@INC
contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .
/usr/ins/intel/apache/ /usr/ins/intel/apache/lib/perl) at
/usr/ins/intel/gui/perllib/Authenticate.pm line 36.
BEGIN failed--compilation aborted at
/usr/ins/intel/gui/perllib/Authenticate.pm line 36.

Syntax error on line 948 of /usr/ins/intel/apache/conf/httpd.conf:
Can't locate lib.pm in @INC (@INC contains:
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .
/usr/ins/intel/apache/ /usr/ins/intel/apache/lib/perl) at
/usr/ins/intel/gui/perllib/Authenticate.pm line 36.
BEGIN failed--compilation aborted at
/usr/ins/intel/gui/perllib/Authenticate.pm line 36.


here the script that is being called look for the  <<<<<< to see line 36
the
same for 948 in the httpd.conf



package AuthCustom;

############################################################################
###
#
#
# Filename: AuthCustom.pm
#
#
#
# Description: Contains script needed to provide custom authorization for
#
#              Apache.
#
#
#
############################################################################
###
############################################################################
###
#
#
#  Copyright © 2000 - 2001 Intel Corporation.
#
#  Intel Corporation All Rights Reserved.
#
#
#
#  The source code contained or described herein and all documents related
to #
#  the source code ("Material") are owned by Intel Corporation or its
#
#  suppliers or licensors.  Title to the Material remains with Intel
#
#  Corporation or its suppliers and licensors.  The Material contains trade
#
#  secrets and proprietary and confidential information of Intel or its
#
#  suppliers and licensors.  The Material is protected by worldwide
copyright #
#  and trade secret laws and treaty provisions.  No part of the Material may
#
#  be used, copied, reproduced, modified, published, uploaded, posted,
#
#  transmitted, distributed, or disclosed in any way without Intel's prior
#
#  express written permission.
#
#
#
#  No license under any patent, copyright, trade secret or other
intellectual #
#  property right is granted to or conferred upon you by disclosure or
#
#  delivery of the Materials, either expressly, by implication, inducement,
#
#  estoppel or otherwise. Any license under such intellectual property
rights #
#  must be express and approved by Intel in writing.
#
#
#
############################################################################
###

# Put the PERL library in the path.
use lib "/usr/ins/intel/gui/perllib";

<<<<<<<<<< line 36
use strict;
use Apache;
use Apache::Constants qw(:common); <<<<<< line 39
use vars qw(@ISA);
use AuthCookie;
use Password;

@ISA = qw(AuthCookie);

use vars qw($PRIV_NONE $PRIV_USER $PRIV_DOMAIN $PRIV_SERVER);
$PRIV_NONE   = 0;
$PRIV_USER   = 1;
$PRIV_DOMAIN = 2;
$PRIV_SERVER = 3;

sub authen_cred ($$\@) {
    my $self = shift;
    my $r = shift;
    my @creds = @_;

    join(":", @creds);
}

sub authen_ses_key ($$$) {
    my $self = shift;
    my $r = shift;
    my($user, $password) = split(/:/, shift, 2);

    # Get the authentication requirements (from Apache) in an array ref
    my $reqs_arr = $r->requires or return;

    my ($requirement, $args);
    foreach my $req (@$reqs_arr) {
      ($requirement, $args) = split /\s+/, $req->{requirement}, 2;
      $args = '' unless defined $args;
      last if ($requirement eq 'valid-user') or ($requirement eq
'domain-admin') or ($requirement eq 'server-admin');
    }

    if ($requirement eq 'valid-user') {
 $requirement = $PRIV_USER;
    }
    elsif ($requirement eq 'domain-admin') {
 $requirement = $PRIV_DOMAIN;
    }
    elsif ($requirement eq 'server-admin') {
 $requirement = $PRIV_SERVER;
    }

    my ($priv_level, @pwent);

    # If requirement is domain-admin or server-admin then check privilege
level
    if (($requirement eq $PRIV_DOMAIN) or ($requirement eq $PRIV_SERVER)) {
      @pwent = getpwnam($user);

      if ($pwent[3] == 10000) {
        # User is a Server Admin (gid is 10000)
        $priv_level = $PRIV_SERVER;
      }
      elsif ($pwent[3] == 10001) {
        # User is a Domain Admin...
        $priv_level = $PRIV_DOMAIN;
      }

    }
    # Otherwise assign a default privilege level
    else {
 $priv_level = $PRIV_USER;
    }

    if ($priv_level >= $requirement) {
      my $pwverify = Password->checkPassword($user, $password);
      if ($pwverify eq "VALID") {
  return $user;
      } else {
  return;
      }
    }
    else {
  return;
    }
}

1;


and this is
line 948 from httpd.conf from the other syntax error

PerlRequire /usr/ins/intel/gui/perllib/Authenticate.pm
<<<<<<<<<<<<948
PerlSetVar AuthenticatePath /
PerlSetVar AuthenticateLoginScript /login.cgi
PerlSetVar AuthCookieDebug 0



basicially i am really asling if anyone no's how i can solve this problem.
Sorry of the long post but it was relvant to give all the details.  I do
have the apache.spec file from the apache.src.rpm so could help created a
make from this is could complie the newer version and include all the
modules.   Also do you no of a way toget apache to run you what modules it
has loaded at runtime

Many Thanks for everyone help

Sean






----- Original Message ----- 
From: "Robert Andersson" <robert@profundis.nu>
To: <users@httpd.apache.org>
Sent: Wednesday, January 14, 2004 9:23 AM
Subject: Re: [users@httpd] Pls help: double slash '//' behind the domain
name


> Sean Woodlock wrote:
> > Its not php.nuke, this script was written by hp to start the http-admin
> > process for the SA1120 web appliance.  They released this product over
> > 2 years ago and have never released an update.  After have been hacked
> > for the 3rd time I thought it was about time I had ago myself and tried
to
> > update the base OS while maintaining the built in functionality of the
web
> > appliance
>
> Ok. I am not familiar with that monster you're dealing with, so you'll
have
> to explain better what it is and what it does. What language? One or more
> files? Configuration files? I have no clue what you have, so I cannot be
of
> much help. My previous suggestion was a general.
>
> Did you say that this "package" run correctly on the other system, with
> *identical* code and configuration?
>
> Regards,
> Robert Andersson
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message