I have several suspicions as to why it isn't working but I can find answers anywhere.
1 - You can only map to certain fields in OTRS such as Userfirstname, Userlastname, Usertitle. I made up the UserDirect and UserPhone so maybe that's why it isn't working?
2 - OTRS is installed on Ubuntu Server and I'm assuming that restarting the networking components is enough to trigger changes made in the Config.pm file. I'm also logging out every time. Do I need to do something more for the changes to take effect?
3 - The telephoneNumber attribute from AD somehow isn't compatible with OTRS.
Could somebody help me out please? I've been at this all day!
Here is the relevant code from my Config.pm file if it helps:
Code: Select all
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'OURDC.com';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=domain,dc=com';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=AD Reader,OU=Agents,DC=p$
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'OURPW';
#$Self->{'AuthSyncModule::LDAP::AlwaysFilter'} = '(objectclass=user)';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
UserTitle => 'title',
UserPhone => 'description',
UserDirect => 'telephoneNumber'
};
# Syncs agents to 'users' group at first login
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
'users',
'stats',
'faq',
];
THANKS!