[rt-users] RT version 3.8.0 and RT-Authen-ExternalAuth-0.05

Espen Wiborg espen.wiborg at telio.no
Fri Aug 8 02:54:18 EDT 2008


Tim Cutts <tjrc at sanger.ac.uk> writes:
> On 7 Aug 2008, at 10:45 am, justin at brighton.ac.uk wrote:
>> I know Mike Peachy hasn't had any time to look at this, but is there  
>> anyone who's got RT-Authen-ExternalAuth working with RT 3.8.x with  
>> LDAP (Sun Directory Service)?
>> I wasn't sure if RT-Authen-ExternalAuth is either totally not  
>> working with 3.8.x, or working in some cases?
> I've found it works as far as LDAP authentication is concerned, but  
> only if the account already exists within RT; in other words account  
> autocreation isn't working.

Autocreation works if you copy
local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth
to local/html/Callbacks/ExternalAuth/autohandler/Auth and apply the
following patch to User_Vendor.pm:

--- local/lib/RT/User_Vendor.pm~	2008-04-09 10:40:44.000000000 +0200
+++ ./local/lib/RT/User_Vendor.pm	2008-08-04 17:46:32.000000000 +0200
@@ -348,7 +348,7 @@
         return (undef);
     }
 
-    if ( $self->PrincipalObj->Disabled ) {
+    if ( $self->PrincipalObj and $self->PrincipalObj->Disabled ) {
         $RT::Logger->info("Disabled user " . $self->Name . 
                           " tried to log in" );
         return (undef);

At least I got it to work, and I think those were the only two changes I
made.

-- 
Espen Wiborg <espen.wiborg at telio.no>
All that blue light from Orthanc at night? That was Saruman, trying to 
moderate news.admin.palantir-abuse.sightings.
					Mike Andrews in the Monastery



More information about the rt-users mailing list