Results 1 to 2 of 2

Thread: [au-extAuth] 1.0.1 released

  1. #1
    New user
    Join Date
    11-04-11.
    Location
    Switzerland
    Posts
    12

    Default [au-extAuth] 1.0.1 released

    This module makes it possible to authenticate against an external Source.
    All you need is a program that runs on the server that can be called with the username and password as command line arguments and returns 0 for success and something else for fail.

    It can be activated for the frontend and backend separately.
    Configuration is done in the settings in the backend.

    I hope, this module can be useful for other users as well.

  2. #2
    New user
    Join Date
    11-04-11.
    Location
    Switzerland
    Posts
    12

    Default Re: [au-extAuth] 1.0.1 released

    I'm using it, to authenticate against Kerberos (which is run by our AD Windows Server)

    For this I've installed on our linux webserver
    heimdal-kcm, perl and Authen::Simple::Kerberos

    Than I created this little script:
    Code:
    #!/usr/bin/perl
    
    # authentication script for mrbs to authenticate against
    # windows active directory with kerberos
    # makes use of Authen:Simple:Kerberos
    # Code mostly copied from example under:
    # http://search.cpan.org/~chansen/Auth...le/Kerberos.pm
    
    # by Marco Tedaldi <tedaldi@hifo.uzh.ch>, 21.7.2011
    
    
    use strict;
    use Authen::Simple::Kerberos;
    
    my $username;
    my $password;
    my $kerberos = Authen::Simple::Kerberos->new(
        realm => 'MY.KERBEROS.REALM'
    );
    
    
    #get the values from the commandline
    $username = shift;
    $password = shift;
    
    # exit, if username or password are empty
    exit 1 if (!$username || !$password);
    
    if ( $kerberos->authenticate( $username, $password ) )
    {
      # on success
      exit 0;
    }
    else
    {
      # authentication failed
      exit 1;
    }
    MY.KERBEROS.REALM has to be replaced...

    and now our users can login to the contao frontend with the same username and password as used on the windows domain.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •