Request For Comments - ExternalAuth (Hoping to be RTx::ExternalAuth v0.1)

Afternoon everyone.

For those that don’t know, I have dedicated a lot of time recently to
creating a new External Authentication system as an extension to the
work put together by Jim Meyer and those that came before him in
creating an LDAP authentication system.

I have now completed the first stage of that task and I present to you
the alpha. This version is capable of authenticating users from LDAP or
any database for which a DBI driver is installed as well as a primitive
cookie authentication system.

This ExternalAuth module contains four files.

  1. etc/RT_SiteConfig_ExternalAuth_Generic.pm
    This contains the config settings specific to this module

  2. local/html/Callbacks/ExternalAuth/autohandler/auth
    This is an upgraded version of the LDAP auth Callback that calls all the
    necessary code at login time for user information and authentication
    checking.

  3. local/lib/RT/User_Local.pm
    This is the upgraded User_Local.pm that contains all the custom code for
    external service authentication and information checking.

  4. lib/RT/Interface/CookieAuth.pm
    This is a custom Cookie Authentication module which is primarily for our
    internal use here at Jennic, but is integrated into the other pieces so
    that anyone can use it if it is useful to them. I’m not sure that
    lib/RT/Interface is the best place for this code, but it’ll have to stay
    there until someone else tells me different.

I have put an immense amount of effort into bringing this all together
and even more effort has been put into commenting the code as clearly as
possible so that anyone could understand it.

I would sincerely appreciate /ANY/ feedback or comments about this
code and would love to have a couple of people run through it and give
it a test.

If I hear nothing, and find no more issues myself, then this will be
uploaded to CPAN as is.

Thank you :slight_smile:
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
http://www.jennic.com

ExternalAuth.tar.gz (15.9 KB)

1 Like

Shouldn’t User_Local be User_Vendor? That way User_Local will still be free
for local customizations.On 3/11/08, Mike Peachey mike.peachey@jennic.com wrote:

Afternoon everyone.

For those that don’t know, I have dedicated a lot of time recently to
creating a new External Authentication system as an extension to the
work put together by Jim Meyer and those that came before him in
creating an LDAP authentication system.

I have now completed the first stage of that task and I present to you
the alpha. This version is capable of authenticating users from LDAP or
any database for which a DBI driver is installed as well as a primitive
cookie authentication system.

This ExternalAuth module contains four files.

  1. etc/RT_SiteConfig_ExternalAuth_Generic.pm
    This contains the config settings specific to this module

  2. local/html/Callbacks/ExternalAuth/autohandler/auth
    This is an upgraded version of the LDAP auth Callback that calls all the
    necessary code at login time for user information and authentication
    checking.

  3. local/lib/RT/User_Local.pm
    This is the upgraded User_Local.pm that contains all the custom code for
    external service authentication and information checking.

  4. lib/RT/Interface/CookieAuth.pm
    This is a custom Cookie Authentication module which is primarily for our
    internal use here at Jennic, but is integrated into the other pieces so
    that anyone can use it if it is useful to them. I’m not sure that
    lib/RT/Interface is the best place for this code, but it’ll have to stay
    there until someone else tells me different.

I have put an immense amount of effort into bringing this all together
and even more effort has been put into commenting the code as clearly as
possible so that anyone could understand it.

I would sincerely appreciate /ANY/ feedback or comments about this
code and would love to have a couple of people run through it and give
it a test.

If I hear nothing, and find no more issues myself, then this will be
uploaded to CPAN as is.

Thank you :slight_smile:

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
http://www.jennic.com



List info:
The rt-devel Archives