[rt-users] ExternalAuth 'environment' type

David Nillesen david.nillesen at njorsk.com
Thu Jun 23 19:29:46 EDT 2011


> Running
>
> git diff 0.08..0.09 | grep -i environment
>
> in the rt-authen-externalauth git repo doesn't find me any results.
> Did you perhaps have a local mod?
>
> If you're referring to REMOTE_USER that's something that RT handles
> without an extension.
>
> -kevin

Wow, OK. Apparently I need to work on my documentation a bit more.

I've done this:

root at arty [PROD] /apps/rt/local/# diff
/apps/build/RT-Authen-ExternalAuth-0.09/lib/RT/Authen/ExternalAuth.pm
plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm
77a78,90
>
>         #############################################################
>         ##################### Environment Check #####################
>         #############################################################
>         if ($config->{'type'} eq 'environment') {
>             # Check for the appropriate environment variable and
>             # trust it
>             if (defined($config->{'name'})) {
>                 $RT::Logger->debug( "Retreiving environment variable ",$config->{'name'} );
>                 $username = $ENV{$config->{'name'}};
>                 $RT::Logger->debug( "username retrieved is \"$username\"" );
>             }
>         }


It adds configurable element for an environment variable that contains
a username to be trusted. From memory my plans were to use webauth
eventually via the apache module/plugin.

The only thing I can think of is that I liked the LDAP mapping
features of externalauth better then the core features.

Feel free to use the patch if you think it is in any way useful. My
apologies if I have copied it from someone else, but I honestly don't
remember how I got to this point :)

Cheers,
Dave



More information about the rt-users mailing list