LDAP / Active Directory Anbindung - Alte Tutorials klappen nicht mehr?

Hilfe zu Znuny Problemen aller Art
Locked
McReady
Znuny newbie
Posts: 28
Joined: 17 Nov 2010, 17:46
Znuny Version: 0.0.0
Real Name: Markus
Location: Links unten auf der .de-Karte

LDAP / Active Directory Anbindung - Alte Tutorials klappen nicht mehr?

Post by McReady »

Hallo *.*,

nachdem ich jetzt den ganzen Tag mit diversen Tutorials zur LDAP-Anbindung verbraten habe: Hat sich da in letzter Zeit was Grundlegendes geändert? Die meisten Tuts sind aus OTRS3/4 Zeiten. Ich habe jetzt eine aktuelle 5s (5.0.16) installiert und grundlegend eingerichtet. Die LDAP-Anbindung will aber ums Verrecken nicht so wie ich will.

Original Beispiel aus dem ORTS-Handbuch: AD-User werden korrekt gezogen, Anmeldung am Customer Portal ist aber nicht möglich.
Beispiele 1 und 2 hier aus dem Bord: Zwischen "Error 500", Blinker (geht, geht nicht) und Apache Log-Einträgen wie diesen hier.

Code: Select all

ERROR: OTRS-CGI-41 Perl: 5.20.2 OS: linux Time: Fri Feb 17 14:48:55 2017

 Message: Need Customer::AuthModule::LDAPHost in Kernel/Config.pm

 RemoteAddress: 192.168.33.251
 RequestURI: /customer.pl

 Traceback (8945):
   Module: Kernel::System::CustomerAuth::LDAP::new Line: 42
   Module: Kernel::System::CustomerAuth::new Line: 69
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 226
   Module: Kernel::System::ObjectManager::Get Line: 180
   Module: Kernel::System::Web::InterfaceCustomer::Run Line: 926
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_customer_2epl::handler Line: 40
   Module: (eval) (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
   Module: ModPerl::Registry::handler (v1.99) Line: 32

[Fri Feb 17 14:48:55.965279 2017] [:error] [pid 8945] Can't call method "GetOption" on an undefined value at /opt/otrs/Kernel/System/CustomerAuth.pm line 103.\n
[Fri Feb 17 14:51:13.674541 2017] [perl:error] [pid 8944] [client 192.168.33.251:57916] Attempt to reload /opt/otrs/Kernel/Config.pm aborted.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179.\n
[Fri Feb 17 15:36:25.396973 2017] [perl:error] [pid 9314] [client 192.168.33.251:54853] Attempt to reload /opt/otrs/Kernel/Config.pm aborted.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179, <DATA> line 751.\n, referer: http://ticket.pequip.local/index.pl?Action=AdminSysConfig
[Fri Feb 17 15:56:24.266606 2017] [perl:error] [pid 8947] [client 192.168.33.251:56130] Attempt to reload /opt/otrs/Kernel/Config.pm aborted.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179, <DATA> line 751.\n
[Fri Feb 17 15:56:32.048336 2017] [perl:error] [pid 9312] [client 192.168.33.251:56132] Attempt to reload /opt/otrs/Kernel/Config.pm aborted.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179, <DATA> line 751.\n
[Fri Feb 17 16:08:39.188431 2017] [perl:error] [pid 9311] [client 192.168.33.251:65186] Attempt to reload /opt/otrs/Kernel/Config.pm aborted.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179.\n
[Fri Feb 17 16:17:12 2017] Config.pm: Subroutine Load redefined at /opt/otrs/Kernel/Config.pm line 24.
[Fri Feb 17 16:17:12.216249 2017] [perl:error] [pid 9309] [client 192.168.33.251:63244] Attempt to reload /opt/otrs/Kernel/Config.pm aborted.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179.\n, referer: http://ticket.pequip.local/
[Fri Feb 17 16:17:12 2017] Config.pm: Subroutine Load redefined at /opt/otrs/Kernel/Config.pm line 24.
[Fri Feb 17 16:17:28.092765 2017] [perl:error] [pid 8944] [client 192.168.33.251:63250] Attempt to reload /opt/otrs/Kernel/Config.pm aborted.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179.\n, referer: http://ticket.pequip.local/
[Fri Feb 17 16:18:35.654227 2017] [perl:error] [pid 9311] [client 192.168.33.251:61111] Attempt to reload /opt/otrs/Kernel/Config.pm aborted.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179.\n, referer: http://ticket.pequip.local/index.pl?Action=AdminLog
[Fri Feb 17 16:18:37.478482 2017] [perl:error] [pid 9314] [client 192.168.33.251:61113] Attempt to reload /opt/otrs/Kernel/Config.pm aborted.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179.\n, referer: http://ticket.pequip.local/index.pl?Action=AdminLog
ERROR: OTRS-CGI-41 Perl: 5.20.2 OS: linux Time: Fri Feb 17 16:19:59 2017
Die Config.pm ist laut perl -c zumindest technisch in Ordnung. Im OTRS Syslog steht fast ausschließlich die eine Meldung, die auch oben gennant ist:

Code: Select all

Need Customer::AuthModule::LDAPHost in Kernel/Config.pm
Fragen darum in die Runde:
- Hat sich da in letzter Zeit was Grundlegendes geändert?
- Gibt es aktuellere Tutorials?
- Oder hatte jemand schon die o.g. Fehler und weiß, wo man hinlangen muss? In den Perl-Dateien ist leider nicht zu finden.
Relaunching OTRS @ Debian
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: LDAP / Active Directory Anbindung - Alte Tutorials klappen nicht mehr?

Post by wurzel »

Hi,

die Konfig hat sich nicht geändert.

was sagt denn ein /opt/otrs/bin/otrs.CheckModules.pl

Flo
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.
McReady
Znuny newbie
Posts: 28
Joined: 17 Nov 2010, 17:46
Znuny Version: 0.0.0
Real Name: Markus
Location: Links unten auf der .de-Karte

Re: LDAP / Active Directory Anbindung - Alte Tutorials klappen nicht mehr?

Post by McReady »

Da hab ich natürlich gleich bei der Installation alles drauf gemacht, was relevant ist (DB ist MariaDB / MySQL):
o Apache::DBI......................ok (v1.12)
o Apache2::Reload..................ok (v0.13)
o Archive::Tar.....................ok (v1.96)
o Archive::Zip.....................ok (v1.39)
o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
o Crypt::SSLeay....................ok (v0.58)
o Date::Format.....................ok (v2.24)
o DBI..............................ok (v1.631)
o DBD::mysql.......................ok (v4.028)
o DBD::ODBC........................Not installed! Use: 'apt-get install -y libdbd-odbc-perl' (optional - Required to connect to a MS-SQL database.)
o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
o DBD::Pg..........................Not installed! Use: 'apt-get install -y libdbd-pg-perl' (optional - Required to connect to a PostgreSQL database.)
o Digest::SHA......................ok (v5.88)
o Encode::HanExtra.................Not installed! Use: 'apt-get install -y libencode-hanextra-perl' (optional - Required to handle mails with several Chinese character sets.)
o IO::Socket::SSL..................ok (v2.002)
o JSON::XS.........................ok (v2.34)
o List::Util::XS...................ok (v1.38)
o LWP::UserAgent...................ok (v6.13)
o Mail::IMAPClient.................ok (v3.35)
o IO::Socket::SSL................ok (v2.002)
o ModPerl::Util....................ok (v2.000009)
o Net::DNS.........................ok (v0.81)
o Net::LDAP........................ok (v0.64)
o Template.........................ok (v2.24)
o Template::Stash::XS..............ok (undef)
o Text::CSV_XS.....................ok (v1.11)
o Time::HiRes......................ok (v1.9726)
o Time::Piece......................ok (v1.27)
o XML::LibXML......................ok (v2.0116)
o XML::LibXSLT.....................ok (v1.92)
o XML::Parser......................ok (v2.41)
o YAML::XS.........................ok (v0.41)
Ich habe spaßeshalber auch mal versucht, den Eintrag genau so zu machen, wie er in der Fehlermeldung geschrieben ist. Aber weder mit
$Self->{'Customer::AuthModule::LDAPHost'} = '192.168.x.x';
noch mit
$Self->{'Customer::AuthModule::LDAPHost1'} = '192.168.x.x';
scheint es zu klappen. Unterschied zum Original ist das Weglassen der zwei Doppelpunkte zwischen LDAP und Host. Evtl. aber auch nur ein Typo in der Fehlermeldung.

Die Kundenbenutzer sind im Admin übrigens auch da. Aber der Login in der Customer.pl wird immer noch mit dem 500er Fehler quittiert.

Code: Select all

ERROR: OTRS-CGI-41 Perl: 5.20.2 OS: linux Time: Mon Feb 20 11:25:32 2017

 Message: Need Customer::AuthModule::LDAPHost in Kernel/Config.pm

 RemoteAddress: 192.168.33.251
 RequestURI: /customer.pl

 Traceback (30666):
   Module: Kernel::System::CustomerAuth::LDAP::new Line: 42
   Module: Kernel::System::CustomerAuth::new Line: 69
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 226
   Module: Kernel::System::ObjectManager::Get Line: 180
   Module: Kernel::System::Web::InterfaceCustomer::Run Line: 926
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_customer_2epl::handler Line: 40
   Module: (eval) (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
   Module: ModPerl::Registry::handler (v1.99) Line: 32

[Mon Feb 20 11:25:32.801471 2017] [:error] [pid 30666] Can't call method "GetOption" on an undefined value at /opt/otrs/Kernel/System/CustomerAuth.pm line 103.\n
Leider ist Zeile 103ff in der CustomerAuth.pm für mich nicht aussagekräftig:

Code: Select all

sub GetOption {
    my ( $Self, %Param ) = @_;

    return $Self->{Backend}->GetOption(%Param);
}
Relaunching OTRS @ Debian
McReady
Znuny newbie
Posts: 28
Joined: 17 Nov 2010, 17:46
Znuny Version: 0.0.0
Real Name: Markus
Location: Links unten auf der .de-Karte

Re: LDAP / Active Directory Anbindung - Alte Tutorials klappen nicht mehr?

Post by McReady »

So, des Rätsels Lösung: Die "1" in der Nummerierung war schuld. Ohne die klappt es.
Relaunching OTRS @ Debian
Locked