PerlAuthenHandler problem with mod_perl in a Cobalt Raq4

2003-07-31 Thread Antonio



Hi There,
 
I need to use Apache::AuthDBI to authenticate 
users via MySQL and InterBase in a Cobalt Raq4. I'm using this method in another 
linux boxes but this particular Raq4 is driving me mad.
 
Raq4 comes with an Apache with a pre compile 
mod_perl 1.25 with all hooks enable, including PerlAuthenHandler and 
PerlAuthzHandler. But no matter what I pass to PerlAuthenHandler or 
PerlAuthzHandler it does not work, Apache seens to be ignoring it.
 
An exemple of my .htaccess file:
 
AuthName "Protected Dir"AuthType 
BasicPerlAuthenHandler Apache::AuthDBI::authen
PerlSetVar Auth_DBI_encrypted offPerlSetVar 
Auth_DBI_data_source dbi:mysql:xPerlSetVar Auth_DBI_username 
PerlSetVar Auth_DBI_password PerlSetVar Auth_DBI_pwd_table 
PerlSetVar Auth_DBI_uid_field PerlSetVar Auth_DBI_pwd_field 

require valid-user
 
If I access this directory the authentication window pops-up (as usual), If 
I try to logon as a database user I get this error in my "error" log:
 
[Thu Jul 24 03:05:10 2003] [error] access to /home/sites/home/web/test 
failed for xxx.xxx.xxx.xxx, reason: AuthPamExternal [/usr/lib/authenticate]: 
Failed (1) for user x
 
Now, the real odd thing is that if I try to access this diretory as a 
regular local system user, it authenticates! The Apache shipped with Raq4 uses 
the mod_auth_pam_external but I don't know if this have something do with this 
problem, as the mod_auth works fine.
 
The Apache or mod_perl seens to be ignoring the PerlAuthenHandler 
directive ...
 
If I use:
PerlAuthenHandler Apache::AuthDBI::authen
It does not work
 
if I use:
PerlAuthenHandler BOGUS::BOGUS::BOGUS
It, of course, does not work, but I don't get any error about it my log 
files! And also, I still can logon as a regular local user.
 
Any ideas/thoughts ?!? Any help would be apprecitate ...
 
Thank you,
Antonio
 
 
 
 
 


CGI files in apache

2003-07-18 Thread AROSO Jose Antonio
Hi...

When I run a cgi file codified in perl in apache server the server says that
have a 500 internal server error.

What is it and how can resolve?

thanks




Apache dont run

2003-07-14 Thread AROSO Jose Antonio
Hi.

I install the all in one package which contain the modperl 2.0 and de apache
server 2.0.46.
But after install when i write in command line "apache" to run the server
appears "The dynamic link library libxml2.dll could not be found".
What do i do?

thanks

Jose Santos  

Jose Antonio Aroso Santos
Enabler - Solutions for retailing
Avenida da Boavista, 1223
4100 - 130 Porto, Portugal
Email: [EMAIL PROTECTED]
Web site: www.enabler.com




Uri modification at translation phase ...

2000-11-16 Thread Antonio Pascual

Hi Everybody.
I'm making a module that modifies the uri at the translation phase,
but I have a doubt.

The way I do it is modifying the uri and returning DECLINED as I read in the
book "Writing Apache Modules with Perl And C".
But working like this, the environment variable QUERY_STRING is well
modified
but the uri at the browser is not changed.
I have test return REDIRECT but then POST calls don't work.

Any suggestion?

Thanks.






PerlTransHandler question.

2000-05-23 Thread Antonio Pascual



I want handler a request only if the url is like http://localhost/idTrans=XXX
In other case do the default 
behaviour.
How could I do this?
I suppose that I have to use PerlTransHandler, but 
I don't know how.
 
Thanks in advance.
 
Antonio.