Since I have implemented the LDAP Agent authentication and sync I have been setting this error in the logs. I dont understand why as the AD account it links to has a last name field.
Code: Select all
Oct 17 14:35:45 mfg-ky-otrs-s02 OTRS-CGI-01[8489]: [Error][Kernel::System::User::UserUpdate][Line:510]: Need UserLastname!
Code: Select all
Oct 17 13:19:45 mfg-ky-otrs-s02 OTRS-CGI-01[8483]: [Notice][Kernel::System::User::GetUserData] Panic! No UserData for user: 'testOTRSuser'!!!
Code: Select all
#authenticate agents via LDAP
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'mfg-ps-pdc-s01.dal.local';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=dal,dc=local';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::GroupDN'} = 'CN=OTRS Agents,OU=Domain Local Groups,OU=Security_Groups,OU=Global AD Management,OU=Mitchell Farrar Group,DC=DAL,DC=local';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=otrs,CN=Users,DC=DAL,DC=local';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'blah';
$Self->{'AuthModule::LDAP::AlwaysFilter'} = '(mail=*)';
$Self->{'AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};
####LDAP sync with OTRS DB ####
# agent data sync against ldap
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'mfg-ps-pdc-s01.dal.local';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=dal,dc=local';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=otrs,CN=Users,DC=DAL,DC=local';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'blah';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
'users',
];