You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Ben K." <bk...@coe.tamu.edu> on 2006/10/06 22:04:57 UTC
Apache::AuthCAS
Hi,
I've sent questions to the author of the module, and to the cas list as
well, but wanted to try getting an answer if possible from this list as
well.
It seems Apache::AuthCAS cannot be used with mod_perl2 as is. It worked up
to mod_perl 1.99 according to the pm file, but it seems development
stopped in 2004.
What will be needed to make it work with mod_perl2? Are there
alternatives?
Thanks.
Ben K.
Developer
http://benix.tamu.edu
Re: Apache::AuthCAS
Posted by Jonathan Vanasco <mo...@2xlp.com>.
On Oct 6, 2006, at 4:04 PM, Ben K. wrote:
> What will be needed to make it work with mod_perl2? Are there
> alternatives?
Chances are the people who were using AuthCAS are no longer
maintaining it.
So you might have to adopt it. Shouldn't take more than a few hours
at most.
Read these 4 pages:
Porting CPAN modules to mod_perl 2.0 Status
http://perl.apache.org/products/apache-
modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status
mod_perl 2.0 renaming
http://perl.apache.org/docs/2.0/rename.html
Porting Apache:: Perl Modules from mod_perl 1.0 to 2.0
http://perl.apache.org/docs/2.0/user/porting/porting.html
A Reference to mod_perl 1.0 to mod_perl 2.0 Migration.
http://perl.apache.org/docs/2.0/user/porting/compat.html
Then port. There are XS port docs as well.
Porting modules isn't that bad. Everyone has to do one eventually.
Re: Apache::AuthCAS
Posted by David Castro <ap...@entwash.org>.
Looks like they are Apache2::Const and Apache2::compat now.
Ben K. wrote:
>
> Well, I did "force install" and tried it for some time, but couldn't
> make it work with a few modification.
>
> There are errors about Apache::Const and Apache::compat - they're not
> in apache2 space any more.
>
> I'll do more probe this evening.
>
> Regards,
> Ben K.
>
>
> On Mon, 9 Oct 2006, David Castro wrote:
>
>> FYI, this module is still alive. The module works in mod_perl 1.x
>> and 2.x and has been tested in both. See the mod_perl docs on using
>> the Apache::Compat module for running 1.x modules in mod_perl 2.x.
>> It appears that the problem you are seeing is with the makefile.
>> Until I fix this issue, you can manually unzip and install the
>> Apache/AuthCAS.pm file into your perl library structure and then use
>> it as normal (e.g. place it in
>> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Apache).
>>
>> Also, there is a patch to fix the hard coded DBI::Pg driver that
>> hasn't been integrated into the CPAN release, which can be found here:
>>
>> http://www.ja-sig.org/wiki/display/CAS/AuthCAS
>>
>> Cheers,
>> David
>>
>> Ben K. wrote:
>>>
>>> Hi,
>>>
>>> I've sent questions to the author of the module, and to the cas list
>>> as well, but wanted to try getting an answer if possible from this
>>> list as well.
>>>
>>> It seems Apache::AuthCAS cannot be used with mod_perl2 as is. It
>>> worked up to mod_perl 1.99 according to the pm file, but it seems
>>> development stopped in 2004.
>>>
>>> What will be needed to make it work with mod_perl2? Are there
>>> alternatives?
>>>
>>>
>>> Thanks.
>>>
>>> Ben K.
>>> Developer
>>> http://benix.tamu.edu
>>>
>>
>
> Regards,
>
> Ben K.
> Developer
> http://benix.tamu.edu
>
Re: Apache::AuthCAS
Posted by "Ben K." <bk...@coe.tamu.edu>.
> Whelp, it used to work just dandy under mod_perl2 with the compat module. Not
> sure why that has changed. I have confirmed that with mod_perl 2 it appears
> to be very unhappy with the Apache libraries being referenced, although I'm
> quite sure that didn't use to be the case.
>
> Looks like I have some re-working to do. I'll try to get you a patched
> version soon Ben. Thanks for bringing the problems to my attention.
Thanks much!
Regards,
Ben K.
Developer
http://benix.tamu.edu
Re: Apache::AuthCAS
Posted by Frank Wiles <fr...@wiles.org>.
On Mon, 9 Oct 2006 14:42:10 -0500 (CDT)
"Ben K." <bk...@coe.tamu.edu> wrote:
>
> Well, I did "force install" and tried it for some time, but couldn't
> make it work with a few modification.
>
> There are errors about Apache::Const and Apache::compat - they're not
> in apache2 space any more.
>
> I'll do more probe this evening.
I looked at the code a bit, and it's going to need a bunch of work.
You'll need to follow the changes laid out in the rename doc,
http://perl.apache.org/docs/2.0/rename.html
The problem is that it uses mod_perl APIs throughout it's code and
so you're going to end up with a bunch of if( MP2 ) { } else { }
blocks everywhere. Where you'll use say Apache2::Const::OK and
use Apache::OK in the else.
---------------------------------
Frank Wiles <fr...@wiles.org>
http://www.wiles.org
---------------------------------
Re: Apache::AuthCAS
Posted by "Ben K." <bk...@coe.tamu.edu>.
Well, I did "force install" and tried it for some time, but couldn't make
it work with a few modification.
There are errors about Apache::Const and Apache::compat - they're not in
apache2 space any more.
I'll do more probe this evening.
Regards,
Ben K.
On Mon, 9 Oct 2006, David Castro wrote:
> FYI, this module is still alive. The module works in mod_perl 1.x and 2.x and
> has been tested in both. See the mod_perl docs on using the Apache::Compat
> module for running 1.x modules in mod_perl 2.x. It appears that the problem
> you are seeing is with the makefile. Until I fix this issue, you can manually
> unzip and install the Apache/AuthCAS.pm file into your perl library structure
> and then use it as normal (e.g. place it in
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Apache).
>
> Also, there is a patch to fix the hard coded DBI::Pg driver that hasn't been
> integrated into the CPAN release, which can be found here:
>
> http://www.ja-sig.org/wiki/display/CAS/AuthCAS
>
> Cheers,
> David
>
> Ben K. wrote:
>>
>> Hi,
>>
>> I've sent questions to the author of the module, and to the cas list as
>> well, but wanted to try getting an answer if possible from this list as
>> well.
>>
>> It seems Apache::AuthCAS cannot be used with mod_perl2 as is. It worked up
>> to mod_perl 1.99 according to the pm file, but it seems development stopped
>> in 2004.
>>
>> What will be needed to make it work with mod_perl2? Are there alternatives?
>>
>>
>> Thanks.
>>
>> Ben K.
>> Developer
>> http://benix.tamu.edu
>>
>
Regards,
Ben K.
Developer
http://benix.tamu.edu