Authentication with LDAP and LOCAL DB

Moderator: crythias

Locked
chmod0day
Znuny newbie
Posts: 3
Joined: 18 Dec 2016, 01:20
Znuny Version: 5.0.12

Authentication with LDAP and LOCAL DB

Post by chmod0day »

hI !!

Is it possible to enable LDAP and Local DB for authentication?

I need some users to be authenticated, but these accounts can not be created in AD-Active Directory.

Would anyone have any Config.pm for you to use as an example?

Thank you in advance.

Note: I already have OTRS in production with LDAP authentication.
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Authentication with LDAP and LOCAL DB

Post by wurzel »

Hi,

have a look in /opt/otrs/Kernel/Config/Defaults.pm

there you'll find the default local DB Auth. Do not edit the file, but copy the necessary part to your Config.pm

additionally you may read the doc
http://otrs.github.io/doc/manual/admin/ ... er-backend
If you want to utilize more than one customer data source used with OTRS (e.g. an LDAP and a database backend), the CustomerUser config parameter should be expanded with a number, e.g. "CustomerUser1", "CustomerUser2"


regards
Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
chmod0day
Znuny newbie
Posts: 3
Joined: 18 Dec 2016, 01:20
Znuny Version: 5.0.12

Re: Authentication with LDAP and LOCAL DB

Post by chmod0day »

Hi,

I have a config.pm below:

Https://pastebin.com/90M29ryc

But it does not work. I lose Apache management (Error 500).

What can it be?
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Authentication with LDAP and LOCAL DB

Post by wurzel »

Hi,

the raw format shows lines with
[ 'UserPassword', Translatable('Password'), 'pw', 0, 0, '$


The $ is wrong.

Did you copy/paste wrong?


please read your apache log for syntax errors.


Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
chmod0day
Znuny newbie
Posts: 3
Joined: 18 Dec 2016, 01:20
Znuny Version: 5.0.12

Re: Authentication with LDAP and LOCAL DB

Post by chmod0day »

I will review my configuration file, and as soon as they have made some progress, I will comment again.

Thank you for your help so far.
Locked