Hier ist unsere Konfiguration für die Agenten:
# ---------------------------------------------------- #
# LDAP-Anbindung #
# ---------------------------------------------------- #
# LDAP AGENT ANBINDUNG
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Charset'} = 'utf-8';
$Self->{'AuthModule::LDAP::Host'} = 'xxx';
$Self->{'AuthModule::LDAP::BaseDN'} = 'xxx';
$Self->{'AuthModule::LDAP::UID'} = 'uid';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'xxx';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'xxx';
$Self->{'AuthModule::LDAP::AlwaysFilter'} = '';
$Self->{UserSyncLDAPMap} = {
# DB -> LDAP
UserTitle => 'gender',
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
# UserTable
$Self->{DatabaseUserTable} = 'users';
$Self->{DatabaseUserTableUserID} = 'id';
$Self->{DatabaseUserTableUserPW} = 'pw';
$Self->{DatabaseUserTableUser} = 'login';
# defines AuthSyncBackend (AuthSyncModule) for AuthModule
# if this key exists and is empty, there won't be a sync.
# example values: AuthSyncBackend, AuthSyncBackend2
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
# agent data sync against ldap
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'xxx';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'xxx';
$Self->{'AuthSyncModule::LDAP::UID'} = 'uid';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'xxx';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'xxx';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserTitle => 'gender',
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};