finally we are upgrading our systems from otrs 3 to otrs 4.0.11. otrs 3 was running on windows. otrs 4 will be on ubuntu. because of different customers i had to set up 2 different systems. Installation and DB Migration was easy and the first system (without ldap) is live now and running perfect.
The second system is killing me. I'm trying to set up LDAP Auth for Agents. I've installed net::ldap and asn1 via cpan. Config.pm settings for LDAP are the same as in the old (still live) windows system. CheckModules also tells me everything's ok and every required module is installed.
Here's my actual Config.pm - LDAP Part:
Code: Select all
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'host.local';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=dcexample, dc=dcexample';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
#$Self->{'AuthModule::LDAP::GroupDN'} ='cn=example, ou=groupexample, ou=ouexample, dc=dcexample, dc=dcexample';
$Self->{UserSyncLDAPMap} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=cnexample, ou=ouexample, dc=dcexample, dc=dcexample';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'password';
Now on the Ubuntu Server i can't load index.pl (Internal Server Error) and got this error in Apache2 Error.log:
This would be this Code in my LDAP.pm:[Thu Feb 11 10:01:39.651457 2016] [:error] [pid 11887] -e: No LogObject! at /opt/otrs//Kernel/System/Auth/LDAP.pm line 25.\n
Code: Select all
for (qw(LogObject ConfigObject DBObject UserObject GroupObject EncodeObject)) {
$Self->{$_} = $Param{$_} || die "No $_!";
}
I've compared Config.pm Settings for LDAP with the OTRS Manual, Default.pm and other customized config.pms. Even the LDAP.pm seems to be ok. I've emptied the cache, rebuilded the config, reinstalled net::ldap, user is in DB and AD etc. etc. etc......
Do i have to set something for this logobject (like Log::File etc.?)? What does this Error mean? Are there differences between Windows LDAP and Ubuntu LDAP settings i haven't seen right now? Did i forget something completely trivial?
I'm really stuck with this and happy about any information. Thank you.