I'm new to otrs, I'm currently running version 5.0.13 on debian server and having problem with ldap integration for agent (haven't tried customer yet).
I think i managed to authenticate user, but can't sync (create) user in database (mysql).
With this code:
Code: Select all
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '127.0.0.1';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=xxx,dc=com';
$Self->{'AuthModule::LDAP::UID'} = 'uid';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=tester,cn=adminuser,ou=ldapusers,dc=xxx,dc=com';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'tester';
$Self->{'AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
# agent data sync against ldap
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = '127.0.0.1';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=xxx, dc=com';
$Self->{'AuthSyncModule::LDAP::UID'} = 'uid';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'cn=tester, cn=adminuser, ou=ldapusers, dc=xxx, dc=com';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'tester';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [ 'users', ];
and the error logPanic, user authenticated but no user data can be found in OTRS DB!! Perhaps the user is invalid.
And that's all configuration I made about ldap. I'm not sure if I have problem with database connection or code, but without ldap I was able to login into otrs via root@localhost user account. I've tried many solutions, but none worked for me.Message: Need UserFirstname!
Message: Can't create user 'tester' (cn=tester,cn=adminuser,ou=ldapusers,dc=vse,dc=cz) in RDBMS!
I would appreciate any help, thanks all.