single sign on

Moderator: crythias

Post Reply
tigra
Znuny newbie
Posts: 1
Joined: 28 Jun 2010, 05:53
Znuny Version: 2.4.7

single sign on

Post by tigra »

Hello all.
I can`t implement SSO on OTRS 2.4.7 for win (with StrawberryPerl) installation

tested on VirtualPC Windows XP, added to AD - domain

steps:
1. install otrs
2. download mod_auth_sspi 1.0.3, copy SO file to apache/modules
3. add loadmodule in apache httpd config file, before all other modules

Code: Select all

<IfModule !mod_auth_sspi.c>
    LoadModule sspi_auth_module modules/mod_auth_sspi.so
</IfModule>

4. sync agent and customer from AD to OTRS DB, logged-in user exists in OTRS DB users and customer_user tables

5. setup Config.pm and otrs httpd conf file

Config.pm

Code: Select all

    $Self->{'AuthModule'} = 'Kernel::System::Auth::HTTPBasicAuth';
    $Self->{'AuthModule::HTTPBasicAuth::Replace'} = 'domain\\';

    $Self->{AgentPanelLoginURL} = 'http://portal/login/';
    $Self->{AgentPanelLogoutURL} = 'http://portal/logout/';


    $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::HTTPBasicAuth';
    $Self->{'Customer::AuthModule::HTTPBasicAuth::Replace'} = 'domain\\';

    $Self->{CustomerPanelLoginURL} = 'http://portal/login/';
    $Self->{CustomerPanelLogoutURL} = 'http://portal/logout/';
apache2-httpd-new.include.conf

Code: Select all

<Location /otrs>
#        ErrorDocument 403 /otrs/customer.pl
        ErrorDocument 403 /otrs/index.pl
        SetHandler  perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv

    AuthName "OTRS"
    AuthType SSPI
    SSPIAuth On
    SSPIAuthoritative On
    SSPIDomain domain
    SSPIUsernameCase lower
    SSPIOfferBasic On
    SSPIOmitDomain On
    SSPIBasicPreferred Off
    Require valid-user

    Order allow,deny
        Allow from all
    </Location>

</IfModule>
6. restart otrs, trying to login via http://portal/otrs/index.pl... and got otrs agent login screen :(

in apache log sspi module loaded:
Apache/2.2.10 (Win32) mod_auth_sspi/1.0.3

in OTRS log file
Need UserLogin or UserID!


the same configuration with OTRS 2.4.7 for win (with OTRSperl + mod_perl - BETA RELEASE) installation works fine
Mike_B
Moderator
Posts: 266
Joined: 12 Jan 2010, 18:16
Znuny Version: CVS HEAD

Re: single sign on

Post by Mike_B »

Hi tigra,

I guess you don't need to use $Self->{'AuthModule::HTTPBasicAuth::Replace'} = 'domain\\'; because you configured OmitDomain.
Is the user name coming through? Please see if the authentication to the web server works, it looks like the webserver does recognize the user name.

--
Mike.
huntingbears.nl - @michielbeijen on Twitter
risker
Znuny newbie
Posts: 91
Joined: 21 Jan 2008, 08:16
Znuny Version: Kein OTRS
Real Name: Oliver Skibbe
Company: MDKN
Location: Hannover
Contact:

Re: single sign on

Post by risker »

Hey,

how can i use HTTPBasicAuth for my agents and not for customers? (index.pl / customer.pl)

Greetings
risker
1. OTRS Version: 3.0.12
Module: FAQ, extended TimeAccounting (supports Projects), SystemMonitoring, ITSM, Support
Server: Apache/2.0.55 (Ubuntu 10.04) PHP/5.2.6 mod_ssl/2.2.9 OpenSSL/0.9.8a mod_perl/2.0.4 Perl/v5.8.7.

ImageCIPHRON Security, Communications & Engineering
ImageCIPHRON OTRS Unterstützung & Dienstleistungen
Post Reply