OTRS mit W2k8R2 AD Backend

Allgemein Fragen, deutsche News, Ankündigungen & Events zum OTRS
Post Reply
chris84
Znuny newbie
Posts: 5
Joined: 18 Sep 2012, 09:36
Znuny Version: 3.1.10

OTRS mit W2k8R2 AD Backend

Post by chris84 »

Hallo Gemeinde,

ich habe OTRS erfolgreich unter CentOS 6.3 installiert - ich konnte mich auch schon erfolgreich mit dem root@localhost user einloggen.
Nun hätte ich gerne das die Agents (Mitarbeiter) ihre AD credentials verwenden können, ich habe mich dabei an die Anleitung unter http://doc.otrs.org/3.0/de/html/auth-ba ... h-backends bzw. http://www.youtube.com/watch?v=ZwODnB5L5lM gehalten.

Net::LDAP ist installiert.

Dabei habe ich festgestellt das ich mich mit meinem AD login einloggen kann.
Aus /var/log/messages:

Code: Select all

Sep 19 09:58:19 otrs OTRS-CGI-10[1286]: [Notice][Kernel::System::Auth::LDAP::Auth] User: meinuser (CN=Mein User,OU=Otrs-User,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=otrs,DC=local) authentication ok (REMOTE_ADDR: 192.168.2.114).
Sep 19 09:58:19 otrs OTRS-CGI-10[1286]: [Notice][Kernel::System::User::GetUserData] Panic! No UserData for user: 'meinuser'!!!
Sep 19 09:58:19 otrs OTRS-CGI-10[1286]: [Notice][Kernel::System::User::UserAdd] User: 'meinuser' ID: '2' created successfully (1)!
Sep 19 09:58:19 otrs OTRS-CGI-10[1286]: [Notice][Kernel::System::User::SetPassword] User: 'meinuser' changed password successfully!
Sep 19 09:58:19 otrs OTRS-CGI-10[1286]: [Notice][Kernel::System::Auth::Sync::LDAP::Sync] Initial data for 'meinuser' (CN=Mein User,OU=Otrs-User,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=otrs,DC=local) created in RDBMS.
Soweit so gut.

Wenn ich dann zb. ein Neues E-Mail Ticket anlegen möchte, bekomme ich die Meldung:

Code: Select all

Internal Server Error

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

Please contact the server administrator, hostmaster@funknetz.at 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.
klicke ich im Browser auf Seite neu laden - bekomme ich die Seite geliefert.

Im /var/log/http/error.log sieht man:

Code: Select all

[Wed Sep 19 10:25:07 2012] [error] Can't locate object method "Load" via package "Kernel::Config" at /opt/otrs//Kernel/Config/Defaults.pm line 1770.\n
Zeile 1770:

Code: Select all

    
# load config
$Self->Load();

Hier meine /opt/otrs/Kernel/Config.pm:

Code: Select all

package Kernel::Config;

use utf8;

sub Load {
    my $Self = shift;

    $Self->{'DatabaseHost'} = 'localhost';
    $Self->{'Database'} = 'otrs';
    $Self->{'DatabaseUser'} = 'otrs';
    $Self->{'DatabasePw'} = 'meindbpwd';
    $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";


    $Self->{Home} = '/opt/otrs';




    $Self->{AuthModule} = 'Kernel::System::Auth::LDAP';
    $Self->{'AuthModule::LDAP::Host'} = 'ad.otrs.local';
    $Self->{'AuthModule::LDAP::BaseDN'} = 'dc=otrs,dc=local';
    $Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';

    $Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=otrs,OU=Otrs-User,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=otrs,DC=local';
    $Self->{'AuthModule::LDAP::SearchUserPw'} = 'meinsearchuserpwd';

    $Self->{'AuthModule::LDAP::Params'} = {
        port    => 389,
        timeout => 120,
        async   => 0,
        version => 3,
    };


    $Self->{AuthSyncModule} = 'Kernel::System::Auth::Sync::LDAP';
    $Self->{'AuthSyncModule::LDAP::Host'} = 'ad.otrs.local';
    $Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=otrs,dc=local';
    $Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';

    $Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=otrs,OU=Otrs-User,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=otrs,DC=local';
    $Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'meinsearchuserpwd';

    $Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
        UserFirstname => 'givenName',
        UserLastname  => 'sn',
        UserEmail     => 'mail',
    };

    $Self->{'AuthSyncModule::LDAP::Params'} = {
        port    => 389,
        timeout => 120,
        async   => 0,
        version => 3,
    };


}

use strict;
use warnings;

use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.25 $)[1];

use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');


1;
Hat jemand eine Idee warum ich da immer die Seiten aktualisieren muss bzw. warum die Methode "Load" nicht gefunden werden kann?

Grüße
Chris
chris84
Znuny newbie
Posts: 5
Joined: 18 Sep 2012, 09:36
Znuny Version: 3.1.10

Re: OTRS mit W2k8R2 AD Backend

Post by chris84 »

Es dürfte nicht direkt mit der AD Integration zu tun haben. Ich habe nun sämtliche Einträge in /opt/otrs/Kernel/Config.pm entfernt, dennoch bekomme ich den 500 Internal Server Error:
Internal Server Error

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

Please contact the server administrator, hostmaster@otrs.local 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.
.
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS mit W2k8R2 AD Backend

Post by root »

Was steht denn im Errorlog vom Webserver (Default: /var/log/httpd/error_log)?
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 ?
chris84
Znuny newbie
Posts: 5
Joined: 18 Sep 2012, 09:36
Znuny Version: 3.1.10

Re: OTRS mit W2k8R2 AD Backend

Post by chris84 »

Keine Ahnung was es letztendlich war, ich habe die ganze Maschine rebootet seither tritt das Problem nicht mehr auf.
Post Reply