[SOLVED] Multiple Authentication Methods

Moderator: crythias

Locked
fpaganel
Znuny newbie
Posts: 9
Joined: 17 Sep 2012, 19:18
Znuny Version: 3.1.8
Real Name: Francesco
Company: Marazzi Group

[SOLVED] Multiple Authentication Methods

Post by fpaganel »

Hi,
at the moment i have configured Otrs with only LDAP Authentication (agent side):

# Agent Authentication: Uso LDAP
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
......
...

I would like add another method authentication such as OTRS database (default).
So Otrs will try to find out the user in the LDAP (first attempt) otherwise in the OTRS database (second attempt).

Please, let me know how can do that.

Thanks in advance
Francesco
Last edited by fpaganel on 08 Oct 2012, 16:51, edited 1 time in total.
vkandersv
Znuny newbie
Posts: 36
Joined: 07 Mar 2011, 18:32
Znuny Version: 3.0.6

Re: Multiple Authentication Methods

Post by vkandersv »

Hi,

Im trying to do almost same thing :-) Any success?

My description of my problem;

I want primary to auth against httpbasicauth and secondary against the internal db

Found this faq, but it doesnt work when i Try it
http://faq.otrs.org/otrs/public.pl?Acti ... ItemID=219;

$Self->{'AuthModule1'} = 'Kernel::System::Auth::HTTPBasicAuth';
$Self->{'AuthModule2'} = 'Kernel::System::Auth::DB';

I just get an internal error;

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
--
ORTS 3.0.6, Linux, MySQL, ActiveDirectory integration for Customer.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Multiple Authentication Methods

Post by crythias »

You need to make all the authentication entries consistent for each method.
viewtopic.php?f=60&t=16543
If you want to use LDAP in addition to other backends (or multiple ldap connections), you will need to append an index value (1-9) to the Array keys of the entries in Config.pm
What that means in "I don't know what you mean" speak:
$Self->{AuthModule1} = ...
$Self->{'AuthModule::LDAP::Host1'} = ...
and so on.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
vkandersv
Znuny newbie
Posts: 36
Joined: 07 Mar 2011, 18:32
Znuny Version: 3.0.6

Re: Multiple Authentication Methods

Post by vkandersv »

Tnxs, it works now!
--
ORTS 3.0.6, Linux, MySQL, ActiveDirectory integration for Customer.
fpaganel
Znuny newbie
Posts: 9
Joined: 17 Sep 2012, 19:18
Znuny Version: 3.1.8
Real Name: Francesco
Company: Marazzi Group

Re: [SOLVED] Multiple Authentication Methods

Post by fpaganel »

Thanks! It works!
Locked