Fallback-Host LDAP

Hilfe zu Znuny Problemen aller Art
Locked
BIG_jan
Znuny advanced
Posts: 138
Joined: 05 Jun 2009, 11:32
Znuny Version: 3.3.8
Company: Netzlink Informationstechnik GmbH
Location: Wolfenbüttel,GER
Contact:

Fallback-Host LDAP

Post by BIG_jan »

Hi
gibt es eine Möglichkeit einen zweiten DomainController als Fallback in den Anmeldevorgang einzubinden?
Habe das beim Mailserver schon geschafft, aber vielleicht geht das hier ja ohne Programmierarbeit?

Anmeldung erfolgt bei uns für die Agenten über einen Windows DC. Dieser ist letztens ausgefallen, weshalb man sich nicht mehr anmelden konnte. (ups)
Hier wäre es schön, wenn OTRS auf einen anderen DC umgeschwenkt hätte, wenn konfiguriert, bzw es bei einem anderen noch versucht, wenn der erste nicht verfügbar ist.

Mfg jan
Live: OTRS 3.3.8, ITSM 3.3.8, in vm
Test: otrs 3.3.8, ITSM

OS: RedHat 6.5 64Bit, Apache: 2.2.15, MySQL 5.5.38, Perl: 5.10.1, mod_Perl 2.0.4
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Fallback-Host LDAP

Post by Wolfgangf »

vielleicht mit einem weiteren Config Eintrag á la

Code: Select all

    $Self->{CustomerUser1} = {
        Name => 'Active Directory backup',
        Module => 'Kernel::System::CustomerUser::LDAP',
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
root
Administrator
Posts: 4254
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Fallback-Host LDAP

Post by root »

Es gab da im Januar 2009 einen Beitrag auf der Mailingliste, hier mal der entscheidende Teil:

Code: Select all

In Config.pm, define an array like this:
my @ldaphosts = ( 'dc1.domain.local', 'dc2.domain.local',
'dc3.domain.local');

Now, evrywhere where an entry for Host is necessary, use this variable, i.e.
# CustomerUser
# (customer user ldap backend and settings)
    $Self->{CustomerUser1} = {
        Name => 'LDAP Backend',
        Module => 'Kernel::System::CustomerUser::LDAP',
        Params => {
            # ldap host
            Host => \@ldaphosts,

# AgentAuth
    $Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
    $Self->{'AuthModule::LDAP::Host'} = \@ldaphosts;

# CustomerAuth
    $Self->{'Customer::AuthModule::LDAP::Host'} = \@ldaphosts;
Innerhalb von Params kann man dann noch mit timeout festlegen wie lange versucht werden soll jeden einzelnen LDAP-Server zu erreichen.

hth, Roy
Last edited by root on 09 Jun 2011, 19:14, edited 1 time in total.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Fallback-Host LDAP

Post by Wolfgangf »

perfect! Thanks for the hint!
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
BIG_jan
Znuny advanced
Posts: 138
Joined: 05 Jun 2009, 11:32
Znuny Version: 3.3.8
Company: Netzlink Informationstechnik GmbH
Location: Wolfenbüttel,GER
Contact:

Re: Fallback-Host LDAP

Post by BIG_jan »

das kingt schon spannend, danke.
werde das mal testen, wenn ich wieder an meine maschine kann
Live: OTRS 3.3.8, ITSM 3.3.8, in vm
Test: otrs 3.3.8, ITSM

OS: RedHat 6.5 64Bit, Apache: 2.2.15, MySQL 5.5.38, Perl: 5.10.1, mod_Perl 2.0.4
Locked