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.
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.
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
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;
Grüße
Chris