Hallo,
deine Problematik hatte ich letztens erst. Mein Problem war das ständige Copy&Paste aus den Tutorials und Foren-Threads. Das ganze hat alles nur schwieriger gemacht.
Letztendlich nahm ich mir die zwei wichtigen Blöcke aus der offiziellen Doku von OTRS und habe die angepasst. Gerade bei den Feldnamen musste ich auch auf die Groß- und Kleinschreibung achten.
Hier findest du mal meine Konfiguration, die dann auf Anhieb funktioniert hat:
Code: Select all
###################### Agent-Auth LDAP #########################################################
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'ldap://10.100.xx.xx';
$Self->{'AuthModule::LDAP::BaseDN'} = 'ou=Anwender,dc=xx,dc=xx';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=OTRS LDAP,CN=Users,DC=xx,DC=xx';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'Ubudu3Atok73';
$Self->{'AuthModule::LDAP::AlwaysFilter'} = '';
$Self->{'AuthModule::LDAP::GroupDN'} ='CN=OTRS Agents,OU=Anwender,DC=xx,DC=xx';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthModule::LDAP::UserAttr'} = 'DN';
####################### Agent-Auth LDAP #########################################################
####################### Agent-Auth LDAP->DB #####################################################
# 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'} = 'ldap://10.100.xx.xx/';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'OU=Anwender,DC=xx,DC=xx';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=OTRS LDAP,CN=Users,DC=xx,DC=xx';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'Ubudu3Atok73';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenname',
UserLastname => 'sn',
UserEmail => 'mail',
};
# AuthSyncModule::LDAP::UserSyncInitialGroups
# (sync following group with rw permission after initial create of first agent
# login)
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
'users'
];
###################### Agent-Auth LDAP->DB #####################################################
Viel Erfolg!