PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Pramod Sokke" <pramod at investools dot com>
Subject: (no subject)
Date: Oct 3 2000 5:41PM

Hi all,
I'm not sure if this question belongs here. Excuse me if it doesn't.

I'm trying to set up Authentication using Apache::AuthDBI. I'm establishing db connections at startup.
I've set $Apache::DBI::DEBUG = 2.
 
When I start the server, I get the following message for every child process: 
Apache::AuthDBI         PerlChildInitHandler semget failed

And whenever I access the server, I get these messages in my error log:

Apache::AuthDBI         PerlChildInitHandler semget failed
Apache::AuthDBI         PerlChildExitHandler shmread failed 
Apache::AuthDBI         PerlChildExitHandler shmwrite failed

What does all this mean?
Also, I'm trying to cache the passwords, so I don't have to lookup the db again, but for the same user and password, I get this message:
 
Apache::AuthDBI::authen passwd not found in cache 


The following is a snippet from my startup.pl :

use Apache::DBI;
use DBD::Sybase;
use Apache::AuthDBI;

$Apache::DBI::DEBUG = 2;

Apache::DBI->connect_on_init
("dbi:Sybase:$server",
  '$login',
  '$passwd',
  {
    PrintError => 1, #warn() on errors
    RaiseError => 0, # don't die on error
    AutoCommit => 1, # commit executes immediately
  }
);

Apache::DBI->setPingTimeOut("dbi:Sybase:$server", 0);

Apache::AuthDBI->setCacheTime(1000);

Apache::AuthDBI->setCleanupTime(1000);

Apache::AuthDBI->initIPC(50000);


Could somebody throw some light on this?
Thanks in advance!
-Pramod