AW: [otrs] Problems with LDAP Auth - Panic! No UserData for user

Hi,
When I try to login the OTRS login page shows an error message - Panic! No UserData!!! Looging to the logs I see that the authentacion to LDAP works....
From the logs:
tail /tmp/otrs.log
That is due to the fact that you configured agent authentication mixed with customer synchronisation.
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP'; $Self->{'Customer::AuthModule::LDAP::Host'} = '10.2.0.107'; $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=HQ,dc=XX,dc=XX'; $Self->{'Customer::AuthModule::LDAP::UID'} = 'uid';
This is the agent authentication part. The config block starting with
$Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::LDAP',
belongs to the customer LDAP area (as indicated by the keyword 'CustomerUser'). Try this instead: # UserSyncLDAPMap # (map if agent should create/synced from LDAP to DB after login) $Self->{UserSyncLDAPMap} = { # DB -> LDAP Firstname => 'givenName', Lastname => 'sn', Email => 'uid', }; Add or customize the attributes so that they fit to your LDAP config. OTRS yields the 'Panic' message because it is looking in its local database table 'system_user' where it keeps user information as local cache. Upon the first login it copies data from your LDAP there. The log (but only the log) will contain the panic message then for a single time. Login should work, however. The Sync block listed above enables exactly this: It describes how the LDAP info has to be mapped into the database cache table. HTH Tobias
participants (1)
-
Tobias Luetticke