ANNOUNCE: HTML::Embperl 1.3.2

2001-05-15 Thread Gerald Richter

The URL

ftp://ftp.dev.ecos.de/pub/perl/embperl/HTML-Embperl-1.3.2.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/G/GR/GRICHTER/HTML-Embperl-1.3.2.tar.gz
  size: 341834 bytes
   md5: 3ba1d6ecd5958a45ab1a8819517e7672

Embperl 1.3.2 is current stable version and this release contains mainly
bugfixes and a few enhancements.  Development of new features is going on in
Embperl 2.0 for which I expect to release 2.0b3 in a few days.

Embperl is a system for building dynamic websites with Perl.
It gives you the power to embed Perl code in your HTML documents
and the ability to build your Web site out of small reusable objects in
an object-oriented style. You can also take advantage of all the
usual Perl modules, (including DBI for database access) use their
functionality and easily include their output in your web pages.

 Embperl has several features which are especially useful for creating
HTML, including dynamic tables, form field processing, URL
escaping/unescaping, session handling, and more.

 See http://perl.apache.org/embperl/ (english) or
http://www.ecos.de/embperl/ (german) for more information.

Enjoy

Gerald

Changes since 1.3.1:

   - Emulate the syntax => Text parameter of Embperl 2.0, which allows
 to include pure text files any without interpretation. Requested
 by Kee Hinckley.
   - Fixed problem with corrupted @ISA, that had occured when a page was
 first requested without EmbperlObject and then with EmbperlObject.
   - Catch exceptions inside of Embperl.pm and correctly cleanup the
 request. This avoids problems in further request in case anything
 was really going wrong.
   - If the base template in an EmbperlObject request is requested
 directly the Execute ('*') does nothing, to avoid
 endless recursion.
   - Fixed bug in SetSessionCookie which had called undefined method
 getinitalid.  Spotted by Sun Choi.
   - Removed wrong expire setting from SetSessionCookie, spotted
 by Michael Stevens.
   - Additions to IntroEmbperlObject.pod by Neil Gunton.
   - ';' is now accepcted as separator for query strings addtionaly
 to the '&' character. Patch from Brent A. Ellingson.
   - ';' is now escaped to %3B when outputed inside a URL.
   - Embperl is now added to the Serversoftware identification when
 preloaded under mod_perl.
   - adapted make test to Perl 5.6.1 and 5.7.1 so now it passes sucessfully.
   - fixed problem with cleanup in threaded Perl 5.6.1 and higher
   - added pod documentation to embperl.pl. Patch from Angus Lees.
   - %http_headers_out can take now array refs as elements to set multiple
 headers of the same value. Patch from Maxwell Krohn.
   - Non module-documenations (like Intro.pod Faq.pod etc) now gets copied
under
 the correct directory and man pages are generated with the correct name
 (e.g. perldoc HTML::Embperl::Intro works now after installation). Based
 on an idea from Angus Lees.
   - Makefile.PL enhancements for Apache/ActiveState binary distribution
   - quote pathnames in Makefile to allow directories like "Program Files".
 Spotted by Lukas Zapletal.
   - Added epocgi.pl which allow use of EmbperlObject as CGI script.
   - Added a dTHR to function CmdVar to make Embperl compile with threaded
 Perl 5.005. Patch from Michael George III.
   - EMBPERL_SESSION_ARGS can now accept pathes with spaces inside by
quoteing
 an argument e.g. PerlSetEnv EMBPERL_SESSION_ARGS "'Directory=/Session
Files/'".
 Spotted by Lukas Zapletal.
   - Perl search path (@INC) in make test is set to abosulte paths to be
independend
 of directory changes that Apache might issue. Spotted by Randy Korbes.


-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925131
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-





Global variables

2001-05-15 Thread Bjoern


Hi all,

i want to define a global variable  which is also present in subroutines
coded in
extra perl modules.
I tried this "our $test;" but amod_perl tells me following "Global
symbol "$test" requires explicit package name" I know, this is a
question which may be not right here !
I don`t want to use the perlmodule CGI !!

I hope some persons can help me,

Björn

P.S. i also used the module strict !!!

-- 
*** Bjoern Teipel ***
E-Mail  : mailto:[EMAIL PROTECTED]
HTTP: http://www.visit-bjoern.de
Frankfurt am Main * Germany



Re: Fw: Fw: Fw: OReilly Mod_Perl BoF TShirts

2001-05-15 Thread Gunther Birznieks

At 09:19 PM 5/15/01 -0500, Jimi  Thompson wrote:
>From: Gunther Birznieks
>To: Jimi Thompson
>
>No, we don't have a design yet as far I know. I am not really organizing
>it. I just thought I would post quickly to see what ideas people pop up
>because at ApacheCon/Santa Clara the issue of TShirts was only brought up
>the day before the conference.

By the way I just wanted to say in advance (lest I piss anyone off), I 
didn't mean "the day before the conference" in that last mail.. I meant a 
couple weeks before. And even then I think someone was slated but pulled 
out for financial reasons for sponsoring. I don't think it was anyones 
fault really -- just that I thought I would bring it up earlier than it was 
brought up last time. :)





Fw: Fw: Fw: OReilly Mod_Perl BoF TShirts

2001-05-15 Thread Jimi Thompson



Gunther,
 
I am a web designer and I have a friend who is a 
graphics designer (commercial artist who happens to specialize in designs to be 
screen printed).  We'd like to volunteer to help out with the T-shirt 
design.  We'd be pretty happy with some fairly obvious recognition in 
exchange.
 
Jimi
- Original Message - 
From: Gunther 
Birznieks 
To: Jimi 
Thompson 
Sent: Tuesday, May 15, 2001 9:27 AM
Subject: Re: Fw: Fw: OReilly Mod_Perl BoF TShirts
No, we don't have a design yet as far I know. I am not really 
organizing it. I just thought I would post quickly to see what ideas people 
pop up because at ApacheCon/Santa Clara the issue of TShirts was only 
brought up the day before the conference.If you all can come up with 
a great design, that would be wonderful!I would recommending posting 
your intent to volunteer more publically so that whomever was organizing 
this in general can state what is needed. I would imagine if you or your 
friend can do the graphics art portion, then what is left is the monetary 
side plus someone to actually submit the shirt design to a 
printer.Thanks,    
GuntherAt 10:12 PM 5/14/01 -0500, you 
wrote:>Gunther,>>Do you have design yet?  I have a 
commercial artist who specializes in >designs to be screen printed who 
would like to submit a design for the >t-shirt and/or graphics for the 
site.>>Jimi>>- Original Message 
->From: Michael 
K. Jones>To: Jimi 
Thompson>Sent: Sunday, May 13, 2001 11:14 PM>Subject: Re: Fw: 
OReilly Mod_Perl BoF TShirts>>Let's do it, you'll have to help me. 
Let me see what they already have,>and we'll figure out what perl folk'll 
wanna see on their chests.>>xxxM>>Jimi Thompson 
wrote:>>Here's your chance to work with some really good people and to 
get your >>work in front of a bunch of people who would appreciate it. 
I've dealt >>with Gunther and Matt Seargant (who does the take23.org 
site and AxKit) >>for a while, albeit all on line.  You tend to 
find out what kind >>of  person you are dealing with when you 
have flame wars :) over >>differences of opinion. Just a 
thought.>>- Original Message ->>From: Gunther 
Birznieks>>To: mod_perl 
listSent: Sunday, May 13, 2001 >>4:44 AMSubject: OReilly Mod_Perl BoF 
TShirts>>  OK, so there are a lot of mod_perl talks this 
time..(YAY!)But what about the BoF. Will anyone be 
sponsoring a T-Shirt and/or design>>this time around? I figured I 
would ask because I know we ended up talking>>about this like a week 
before ApacheCon/Santa Clara and it seemed like it>>was too 
late.Maybe a couple months before the next conference 
would allow us to get a>>design and 
sponsor.The ideal(?) is also to perhaps tie this into 
spiffing up the mod_perl>>website (as people keep talking about) with 
graphics that would be similar>>in look-and-feel to the 
t-shirt.>>__>>Gunther 
Birznieks >>([EMAIL PROTECTED])>>eXtropia 
- The Open Web Technology Company>>http://www.eXtropia.com/>>__>Gunther 
Birznieks ([EMAIL PROTECTED])>eXtropia 
- The Open Web Technology Company>http://www.eXtropia.com/


Re: Authentication using NIS

2001-05-15 Thread sterling

On 15 May 2001, qazi Ahmed wrote:

> Hi Gurus..
> I have got modperl installed on my system.
> When i check the error_log file, it shows that apache_1.3.19 installed mod_perl-1.25 
>installed.
> Now in httpd.conf  i write the 
> 
> 
> PerlRequire /../../../../startup.pl
> 

do you mean ? or do you actually have an alias to /guts on
your filesystem, plus the PerlRequire seems a bit whacky (/..?)

sterling



> AuthName NISAuthentication
> AuthType Basic
> PerlAuthenHandler  Apache::AuthenNIS
> require valid-user
> 
> 
> When i browse for the index.html present in guts it is not asking for 
>authentication, and just displaying the page.
> I dont know whether the Apache::AuthenNIS handler is being called or not, but the 
>server gets started without any errors.
> 
> Any hints
> Thanks and Regards
> Qazi
> 
> 
> _
> Chat with your friends as soon as they come online. Get Rediff Bol at
> http://bol.rediff.com
> 
> 
> 
> 




Authorization question and subdirectories

2001-05-15 Thread Mike Cameron

Is it possible to have the same PerlAuthzHandler use different require's

on a subdirectory once a user has been authorized for a parent
directory? Here is what i would like to be acle to do:


SetHandler perl-script
AuthType MyAuth
AuthName MyAuth
PerlAuthenHandler MyAuth->authenticate
PerlAuthzHandler MyAuth->authorize
require valid-user



  SetHandler perl-script
  AuthType MyAuth
  AuthName MyAuthSupertight
  PerlAuthenHandler MyAuth->authenticate
  PerlAuthzHandler MyAuth->authorize
  require user administrator


authenticate is working fine and when I debug the $r->requires in
authorize it only returns the 'valid user' requirement and not the "user

administrator" requirement even when i access /restricted.  Right now
the code in authorize just prints the requirements via $r->log_error()
then returns OK; What am I missing?  Why doesn't authorize see the
second requirement for the URI /restricted?






Re: Authentication using NIS

2001-05-15 Thread G.W. Haywood

Hi there,

On 15 May 2001, qazi Ahmed wrote:

> Now in httpd.conf  i write the 
> 
> 
> PerlRequire /../../../../startup.pl

That's a strange way to specify a directory...

73,
Ged.




Re: Building on Darwin (Mac OS X)

2001-05-15 Thread Ken Williams

[EMAIL PROTECTED] (David Ranney) wrote:
>I too tried compiling statically on OS X, and got similar error messages. I
>did however compile and install the DSO against the pre-installed Apache,
>and was able to run some basic test Registry scripts with no problems.
>
>Still, it would be nice to be able to recompile at will. Hope you have luck
>figuring out the problem.

I suppose if nobody has a known fix, this is a topic for the modperl-dev
list.  I'll move it over there.


  ------
  Ken Williams Last Bastion of Euclidity
  [EMAIL PROTECTED]The Math Forum



RE: Apache::DBI missing methods?!

2001-05-15 Thread Geoffrey Young

 
> 
> just DBI.  try
> 
> PerlModule DBI
> PerlModule Apache::DBI

yuk, of course that's backwards...

PerlModule Apache::DBI
PerlModule DBI

sorry...

--Geoff



Re: Internal server Error for Index.html

2001-05-15 Thread Paul

--- qazi Ahmed <[EMAIL PROTECTED]> wrote:
> Hi...
> On trying to access index.html from my server  i get the following
> error in the page.
> index.html is given below:
> 
> 
> Automated Test System
> 
> 
> Automated Test System
> 
> 

Looks like you've got it configured to try and use Perl to parse your
.html's.  Check your httpd.conf

> Internal Server Error
> 
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
> Please contact the server administrator, [no address given] 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/1.3.19 Server at 192.168.64.129 Port 8259
> 
> 
> The details of the error_log are given below:
> [Tue May 15 20:01:24 2001] [notice] suEXEC mechanism enabled
> (wrapper: /export/home/ats/test-tools/ats/guts/apache/bin/suexec)
> Bareword found where operator expected at
> /export/home/ats/test-tools/ats/guts/index.html line 3, near
> "Automated"
> (Missing operator before Automated?)
> Bareword found where operator expected at
> /export/home/ats/test-tools/ats/guts/index.html line 4, near "/TITLE>
>(Might be a runaway multi-line // string starting on line 3)
> (Missing operator before HEAD?)
> Bareword found where operator expected at
> /export/home/ats/test-tools/ats/guts/index.html line 7, near "/H1>
>(Might be a runaway multi-line // string starting on line 6)
> (Missing operator before BODY?)
> [Tue May 15 20:01:40 2001] [error] syntax error at
> /export/home/ats/test-tools/ats/guts/index.html line 2, near "HEAD>"


=
print "Just another Perl Hacker\n"; # edited for readability =o)
=
Real friends are those whom, when you inconvenience them, are bothered less by it than 
you are. -- me. =o) 
=
"There are trivial truths and there are great Truths.
 The opposite of a trival truth is obviously false.
 The opposite of a great Truth is also true."  -- Neils Bohr

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Building on Darwin (Mac OS X)

2001-05-15 Thread David Ranney

On 5/14/01 10:25 PM, "Ken Williams" <[EMAIL PROTECTED]> wrote:

> So perhaps I'll try compiling just the mod_perl DSO and see whether that
> works.  I've never gone that route before because of the historic DSO
> problems with mod_perl.

Ken,

I too tried compiling statically on OS X, and got similar error messages. I
did however compile and install the DSO against the pre-installed Apache,
and was able to run some basic test Registry scripts with no problems.

Still, it would be nice to be able to recompile at will. Hope you have luck
figuring out the problem.

-Dave

--
David Ranney
[EMAIL PROTECTED]





Internal server Error for Index.html

2001-05-15 Thread qazi Ahmed

Hi...
On trying to access index.html from my server  i get the following error in the page.
index.html is given below:


Automated Test System


Automated Test System






Internal Server Error

The server encountered an internal error or misconfiguration and was unable to 
complete your request.
Please contact the server administrator, [no address given] 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/1.3.19 Server at 192.168.64.129 Port 8259


The details of the error_log are given below:
[Tue May 15 20:01:24 2001] [notice] suEXEC mechanism enabled (wrapper: 
/export/home/ats/test-tools/ats/guts/apache/bin/suexec)
Bareword found where operator expected at 
/export/home/ats/test-tools/ats/guts/index.html line 3, near "Automated"
(Missing operator before Automated?)
Bareword found where operator expected at 
/export/home/ats/test-tools/ats/guts/index.html line 4, near "/TITLE>

"


Waiting for your expertise comments

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com







Re: Reverse engineered HTML

2001-05-15 Thread newsreader

On Tue, May 15, 2001 at 07:42:11AM -0400, Paul Cotter wrote:
> Does a package exist that will read an HTML document and generate an 
>Apache::Registry cgi script? Even better if it accepts an 

Re: Reverse engineered HTML

2001-05-15 Thread Stas Bekman

On Tue, 15 May 2001, Paul Cotter wrote:

>
> Does a package exist that will read an HTML document and generate an 
>Apache::Registry cgi script? Even better if it accepts an 

Re: Reverse engineered HTML

2001-05-15 Thread Vegard Vesterheim

"Paul Cotter" <[EMAIL PROTECTED]> writes:

>  
> 
> Does a package exist that will read an HTML document and generate an Apache::Registry
> cgi script? Even better if it accepts an 

Re: Reverse engineered HTML

2001-05-15 Thread Steve van der Burg

>>Does a package exist that will read an HTML document and generate an =
>>Apache::Registry cgi script? Even better if it accepts an 

Re: Reverse engineered HTML

2001-05-15 Thread James G Smith

"Paul Cotter" <[EMAIL PROTECTED]> wrote:
>This is a multi-part message in MIME format.
>
>--=_NextPart_000_0044_01C0DD12.8D1C3600
>Content-Type: text/plain;
>   charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>
>Does a package exist that will read an HTML document and generate an =
>Apache::Registry cgi script? Even better if it accepts an 

RE: Apache::DBI missing methods?!

2001-05-15 Thread Geoffrey Young



> -Original Message-
> From: James Croft [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 15, 2001 8:23 AM
> To: Stas Bekman
> Cc: [EMAIL PROTECTED]
> Subject: Re: Apache::DBI missing methods?!
> 
> 
> On Tue, 15 May 2001, Stas Bekman wrote:
> 
> > > Can't locate object method "module" via package "Apache" at
> > > /usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 202. BEGIN
> > > failed--compilation aborted at ./test.pl line 4.
> > >
> > > Which must be what's frying httpd.

this is not your problem.  you can't run Apache::DBI outside of mod_perl -
when you do you will get this error.

[snip]

> Thanks Stas,
>
> Thing is, I'm sure all the prerequisites have been met.
>
> I'm running apache 1.3.14 and mod_perl 1.21, mod_perl was configured with
> EVERYTHING=1.
>
> The docs don't say so but does ApacheDBI depend on any other modules?

just DBI.  try

PerlModule DBI
PerlModule Apache::DBI

FWIW, the RH6.1 RPMs were problematic for Apache::DBI - I'm not sure whether
the default RH6.2 RPMs fixed the problem.  Maybe you could either upgrade
your RPMs or roll from source...

http://marc.theaimsgroup.com/?l=apache-modperl&m=94148815817548&w=2

if that doesn't work then please send whatever your error log spits out as
well as other pertinent config information.

HTH

--Geoff




Re: Apache::DBI missing methods?!

2001-05-15 Thread James Croft

On Tue, 15 May 2001, Stas Bekman wrote:

> > Can't locate object method "module" via package "Apache" at
> > /usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 202. BEGIN
> > failed--compilation aborted at ./test.pl line 4.
> >
> > Which must be what's frying httpd.
> >
> > Does anyone know what's going on? Any help or suggestions appreciated.
>
> Have you tried:
> http://perl.apache.org/guide/troubleshooting.html#Can_t_locate_object_method_get_
> or
> PREREQUISITES
>Note that this module needs mod_perl-1.08 or higher,
>apache_1.3.0 or higher and that mod_perl needs to be
>configured with the appropriate call-back hooks:
>
>  PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1.
>

Thanks Stas,

Thing is, I'm sure all the prerequisites have been met.

I'm running apache 1.3.14 and mod_perl 1.21, mod_perl was configured with
EVERYTHING=1.

The docs don't say so but does ApacheDBI depend on any other modules?



James

--
James Croft
System Administrator
edNET - Internet Working Solutions
--
t: +44 (0)131 466 7003 (main)
t: +44 (0)131 466 7018 (direct)
pgp: www.ednet.co.uk/~james/public_key.asc
--









the object still does not exists in Apache::Session

2001-05-15 Thread Francesc Guasch

This is an old issue. I recall having patched Apache:Session
so it evals when restoring objects from the Data Store.
When the database of sessions is cleaned the server
dies with "Object does not exist in the data store"

I just installed a server and I had to patch it myself again.
Am I the only one who has this problem ?
Is there something I'm missing ?

Anyway here is the code I changed to Session.pm

#If a session ID was passed in, this is an old hash.
#If not, it is a fresh one.

if (defined $session_id) {
$self->{status} &= ($self->{status} ^ NEW);
eval {
$self->restore;
};
if ($@ =~ /Object does not exists/) {
  $session_id = undef;
}
}
if (!defined $session_id){
$self->{status} |= NEW;
$self->{data}->{_session_id} = generate_id();
$self->save;
}


-- 
 - frankie -



Re: using Apache::AuthCookie and Sample::AuthCookieHandler

2001-05-15 Thread Juha Laiho

On Tue, 15 May 2001, Emma Wermström (EMW) wrote:
...
> apache::authcookie (latest version)
> 
> I found this great module that allows login and logout from a web site
> using cookies. the problem is that I don't know how to use it myself.
> Yes, I've read and reread the documentation that comes with installing
> the module. 
> I want to get an authentication/authorization scheme going for my web
> page and I thought I'd get started just using the
> Sample::AuthCookieHandler package.


Unfortunately I can't check the details for you now, but I've done some
experimentation with Apache::AuthCookie and came up with my own subclass
Apache::AuthCookie::AuthPAM. You can get it from
http://www.saunalahti.fi/~juhaml/Apache-AuthCookie-AuthPAM-2.14.tar.gz

As the name implies, it uses the PAM (Pluggable Authentication Modules)
as the authentication backend. As such, it appears to do the authentication
properly, but the temporary session data files will be left behind, so
some external cleanup of these files is required. It also includes
a small example www directory tree that should help you forward.
-- 
..Juha




Reverse engineered HTML

2001-05-15 Thread Paul Cotter



 
Does a package exist that will read an HTML document and generate an 
Apache::Registry cgi script? Even better if it accepts an 

Re: Apache::DBI missing methods?!

2001-05-15 Thread Tim Gardner

I don't know if there is a downside (perhaps I can't use status?), 
but when I commented out the 'Apache::Status->menu_item( ...' 
section, it seemed to work ok.

Tim


>On Tue, 15 May 2001, James Croft wrote:
>
>>
>>  Hi,
>>
>>  I've just joined the list looking for an answer to this. A couple of
>>  others have posted the same problem but I couldn't find any answers.
>>
>>  I'm running RH6.2 with standard Apache, perl and mod_perl rpms. I'm
>>  hitting a brick wall if I include a 'PerlModule Apache::DBI' line in
>>  httpd.conf - Apache starts up but shuts down immediately. I created a test
>>  script that just use's the module and I get the following error
>>
>>  Can't locate object method "module" via package "Apache" at
>>  /usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 202. BEGIN
>>  failed--compilation aborted at ./test.pl line 4.
>>
>>  Which must be what's frying httpd.
>>
>>  Does anyone know what's going on? Any help or suggestions appreciated.
>
>Have you tried:
>http://perl.apache.org/guide/troubleshooting.html#Can_t_locate_object_method_get_
>or
>PREREQUISITES
>Note that this module needs mod_perl-1.08 or higher,
>apache_1.3.0 or higher and that mod_perl needs to be
>configured with the appropriate call-back hooks:
>
>  PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1.
>
>
>
>
>_
>Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
>http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
>mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
>http://singlesheaven.com http://perl.apache.org http://perlmonth.com/




Re: Authentication using NIS

2001-05-15 Thread Rod Butcher

I seem to remember having a similar problem with Apache::ASP and index.html
(i.e. the default page) when I accessed the site as http://xyz.com/ until I
replaced  with  to specify pages to be processed by
the handler. Do other pages get processed correctly ? At the time this
seemed to me to be a bug in Apache...
regards
Rod
- Original Message -
From: "qazi Ahmed" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 8:36 PM
Subject: Authentication using NIS


> Hi Gurus..
> I have got modperl installed on my system.
> When i check the error_log file, it shows that apache_1.3.19 installed
mod_perl-1.25 installed.
> Now in httpd.conf  i write the
>
>
> PerlRequire /../../../../startup.pl
> 
> AuthName NISAuthentication
> AuthType Basic
> PerlAuthenHandler  Apache::AuthenNIS
> require valid-user
> 
>
> When i browse for the index.html present in guts it is not asking for
authentication, and just displaying the page.
> I dont know whether the Apache::AuthenNIS handler is being called or not,
but the server gets started without any errors.
>
> Any hints
> Thanks and Regards
> Qazi
>
>
> _
> Chat with your friends as soon as they come online. Get Rediff Bol at
> http://bol.rediff.com
>
>
>
>
>





using Apache::AuthCookie and Sample::AuthCookieHandler

2001-05-15 Thread Emma Wermström (EMW)

hi!

RedHat Linux 7.1
apache 1.3.19
perl 5
mod_perl 1.24
embperl (latest version)
apache::authcookie (latest version)

I found this great module that allows login and logout from a web site using cookies. 
the problem is that I don't know how to use it myself. Yes, I've read and reread the 
documentation that comes with installing the module. 
I want to get an authentication/authorization scheme going for my web page and I 
thought I'd get started just using the Sample::AuthCookieHandler package.

Login.htm is page that displays a form where users can add their credentials. It also 
includes a hidden field, destination, where the path to the protected page is written, 
../CIP/Welcome2.htm

At /bla/bla/site/htdocs I have two directories. Intro, which doesn't require 
authentication/authorization and CIP, which DOES require it.

this is how I've configured my httpd.conf file:

PerlRequire /usr/src/Apache-AuthCookie-2.011/t/Sample/AuthCookieHandler.pm

PerlSetVar  /bla/bla/site/htdocs /
PerlSetVar  perl-script Intro/Login.htm


AuthTypeSample::AuthCookieHandler
AuthNameDarkness
PerlAuthenHandler   Sample::AuthCookieHandler->authenticate
PerlAuthzHandlerSample::AuthCookieHandler->authorize
require valid-user



AuthTypeSample::AuthCookieHandler
AuthNameDarkness
PerlFixupHandlerSample::AuthCookieHandler->recognize_user





AuthTypeSample::AuthCookieHandler
AuthNameDarkness
SetHandler  perl-script
PerlHandler Sample::AuthCookieHandler->login


i don't know how to write the file LOGIN. What does it do? 
It is also located at /bla/bla/site/htdocs.

My server complains that it doesn't have access to it but I've made sure that it is 
executable for all users. 

the login.htm page is accessed from the "unprotected" pages in the ../htdocs/Intro 
directory. 

I also don't understand how the subroutines are called. If I explicitly want to call 
login, which parameters do I use? How do I specify package name ($self) and apache 
request object ($r).


I have not altered the subroutines in Apache::AuthCookie and Sample::AuthCookieHandler 
in any way. 

I hope there is anyone out there who feels like answering these, probably simple, 
questions. I've searched the archives already.
Thanks for all help!

Emma



Re: Apache::DBI missing methods?!

2001-05-15 Thread Stas Bekman

On Tue, 15 May 2001, James Croft wrote:

>
> Hi,
>
> I've just joined the list looking for an answer to this. A couple of
> others have posted the same problem but I couldn't find any answers.
>
> I'm running RH6.2 with standard Apache, perl and mod_perl rpms. I'm
> hitting a brick wall if I include a 'PerlModule Apache::DBI' line in
> httpd.conf - Apache starts up but shuts down immediately. I created a test
> script that just use's the module and I get the following error
>
> Can't locate object method "module" via package "Apache" at
> /usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 202. BEGIN
> failed--compilation aborted at ./test.pl line 4.
>
> Which must be what's frying httpd.
>
> Does anyone know what's going on? Any help or suggestions appreciated.

Have you tried:
http://perl.apache.org/guide/troubleshooting.html#Can_t_locate_object_method_get_
or
PREREQUISITES
   Note that this module needs mod_perl-1.08 or higher,
   apache_1.3.0 or higher and that mod_perl needs to be
   configured with the appropriate call-back hooks:

 PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1.




_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Authentication using NIS

2001-05-15 Thread qazi Ahmed

Hi Gurus..
I have got modperl installed on my system.
When i check the error_log file, it shows that apache_1.3.19 installed mod_perl-1.25 
installed.
Now in httpd.conf  i write the 


PerlRequire /../../../../startup.pl

AuthName NISAuthentication
AuthType Basic
PerlAuthenHandler  Apache::AuthenNIS
require valid-user


When i browse for the index.html present in guts it is not asking for authentication, 
and just displaying the page.
I dont know whether the Apache::AuthenNIS handler is being called or not, but the 
server gets started without any errors.

Any hints
Thanks and Regards
Qazi


_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com







Apache::DBI missing methods?!

2001-05-15 Thread James Croft


Hi,

I've just joined the list looking for an answer to this. A couple of
others have posted the same problem but I couldn't find any answers.

I'm running RH6.2 with standard Apache, perl and mod_perl rpms. I'm
hitting a brick wall if I include a 'PerlModule Apache::DBI' line in
httpd.conf - Apache starts up but shuts down immediately. I created a test
script that just use's the module and I get the following error

Can't locate object method "module" via package "Apache" at
/usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 202. BEGIN
failed--compilation aborted at ./test.pl line 4.

Which must be what's frying httpd.

Does anyone know what's going on? Any help or suggestions appreciated.

Thanks

James

--
James Croft
System Administrator
edNET - Internet Working Solutions
--
t: +44 (0)131 466 7003 (main)
t: +44 (0)131 466 7018 (direct)
pgp: www.ednet.co.uk/~james/public_key.asc
--