Pubcookie auth

Hello all,
I am trying to implement pubcookie authentication with mysql
authorization. I could use some help. I am wondering if there is more
information out there than the wiki and the example file in
local/plugins/RT-Authen-ExternalAuth? I am running version 3.8.4 and
have the authentication working before local authorization. I am trying
to figure out how to have RT pull information from the cookie and use
it. Any direction is appreciated.

Pete

Mon 13 Jul 2009 21:59:58 GMT
Peter Boguszewski wrote:

Hello all,
I am trying to implement pubcookie authentication with mysql
authorization. I could use some help. I am wondering if there is more
information out there than the wiki and the example file in
local/plugins/RT-Authen-ExternalAuth? I am running version 3.8.4 and
have the authentication working before local authorization. I am trying
to figure out how to have RT pull information from the cookie and use
it. Any direction is appreciated.

You need to be a little more clear. ExternalAuth already has that code
built in. The code itself is in Cookie.pm. You just need to configure RT
to use it.
Kind Regards,

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England

Sorry about the lack of information. Here is the story. I have
pubcookie installed and working with apache. I have Ubuntu 8.10.3
installed and RT 3.8.4 installed - both work. I installed
RT::Authen::ExternalAuth via cpan successfully (shows up under the
plugins dir). I then add Set(@Plugins,(qw(RT::Authen::ExternalAuth)));
to my RT_SiteConfig.pm and apache2 goes boom. I get this error in the
apache log:

[error] Can’t load Perl file: /opt/rt3/bin/webmux.pl for server
xxxxxxxx:0, exiting…

I am no perl wizard so I am sure I am just doing something stupid.
Again, I remove the plugin from RT_SiteConfig.pm and it works.

I am just missing something?

PeteOn 7/14/2009 6:50 AM, Mike Peachey wrote:

Mon 13 Jul 2009 21:59:58 GMT
Peter Boguszewski wrote:

Hello all,
I am trying to implement pubcookie authentication with mysql
authorization. I could use some help. I am wondering if there is more
information out there than the wiki and the example file in
local/plugins/RT-Authen-ExternalAuth? I am running version 3.8.4 and
have the authentication working before local authorization. I am trying
to figure out how to have RT pull information from the cookie and use
it. Any direction is appreciated.

You need to be a little more clear. ExternalAuth already has that code
built in. The code itself is in Cookie.pm. You just need to configure RT
to use it.

Peter Boguszewski
Library Systems Administrator
UW Madison - Library Technology Group
pboguszewski@library.wisc.edu
608.262.4768

Tue 14 Jul 2009 21:00:49 GMT
Peter Boguszewski wrote:

Sorry about the lack of information. Here is the story. I have
pubcookie installed and working with apache. I have Ubuntu 8.10.3
installed and RT 3.8.4 installed - both work. I installed
RT::Authen::ExternalAuth via cpan successfully (shows up under the
plugins dir). I then add Set(@Plugins,(qw(RT::Authen::ExternalAuth)));
to my RT_SiteConfig.pm and apache2 goes boom. I get this error in the
apache log:

[error] Can’t load Perl file: /opt/rt3/bin/webmux.pl for server
xxxxxxxx:0, exiting…

I am no perl wizard so I am sure I am just doing something stupid.
Again, I remove the plugin from RT_SiteConfig.pm and it works.

I am just missing something?

Sorry, I misunderstood initially… was not aware of pubcookie as a
project. I’ve had a quick look at it, but I’m not certain at this point
how it would integrate with externalauth.

Having said that, I don’t know why it wouldn’t be able to live
side-by-side with externalauth and so it oughtnt make apache go boom
just by loading it.

To be honest, I would have thought that your best route to success would
be to use mod_pubcookie, in which case you don’t want
RT::Authen::ExternalAuth at all, but instead you’d want RT’s inbuilt
apache authentication system whereby it just listens to whatever apache
tells it.
Kind Regards,

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England

Wow, that was the way to go. Setting RT to use the REMOTE_USER variable
after pubcookie auth just works. Sometimes I find the way to make
relatively easy things very complex!

Thank you so much!

PeteOn 7/15/2009 4:41 AM, Mike Peachey wrote:

Tue 14 Jul 2009 21:00:49 GMT
Peter Boguszewski wrote:

Sorry about the lack of information. Here is the story. I have
pubcookie installed and working with apache. I have Ubuntu 8.10.3
installed and RT 3.8.4 installed - both work. I installed
RT::Authen::ExternalAuth via cpan successfully (shows up under the
plugins dir). I then add Set(@Plugins,(qw(RT::Authen::ExternalAuth)));
to my RT_SiteConfig.pm and apache2 goes boom. I get this error in the
apache log:

[error] Can’t load Perl file: /opt/rt3/bin/webmux.pl for server
xxxxxxxx:0, exiting…

I am no perl wizard so I am sure I am just doing something stupid.
Again, I remove the plugin from RT_SiteConfig.pm and it works.

I am just missing something?

Sorry, I misunderstood initially… was not aware of pubcookie as a
project. I’ve had a quick look at it, but I’m not certain at this point
how it would integrate with externalauth.

Having said that, I don’t know why it wouldn’t be able to live
side-by-side with externalauth and so it oughtnt make apache go boom
just by loading it.

To be honest, I would have thought that your best route to success would
be to use mod_pubcookie, in which case you don’t want
RT::Authen::ExternalAuth at all, but instead you’d want RT’s inbuilt
apache authentication system whereby it just listens to whatever apache
tells it.

Peter Boguszewski
Library Systems Administrator
UW Madison - Library Technology Group
pboguszewski@library.wisc.edu
608.262.4768