I have setup LDAP backend for both agents and customers, authentication works fine but i have troubles with display of some fields in Customer User Administration.
For example, I don't see these fields : Fisrtname, Lastname, Email, although my mapping seems correct (CustomerID and username is correctly retrieved from LDAP).
I can tell that because if I go in Customer Information Center and do an email search, customer is found, so email is known from OTRS.
Here is my Config.pm configuration :
Code: Select all
$Self->{CustomerUser} = {
Name => 'LDAP Data Source',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
# ldap host
Host => 'inf-ipa.numeezy.fr',
# ldap base dn
BaseDN => 'dc=numeezy,dc=fr',
# search scope (one|sub)
SSCOPE => 'sub',
# if both your frontend and your LDAP are unicode, use this:
SourceCharset => 'utf-8',
DestCharset => 'utf-8',
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
Params => {
port => 389,
timeout => 120,
async => 0,
version => 3,
},
},
ReadOnly => 1,
# customer unique id
CustomerKey => 'uid',
# customer #
CustomerID => 'uidNumber',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['uid', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
# show not own tickets in customer panel, CompanyTickets
CustomerUserExcludePrimaryCustomerID => 0,
# administrator can't change customer preferences
AdminSetPreferences => 0,
# cache time to live in sec.
CacheTTL => 0,
Map => [
# note: Login, Email and CustomerID are mandatory!
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly
[ 'UserFirstname', 'Firstname', 'givenName', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'uid', 1, 1, 'var', '', 1 ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '', 0 ],
[ 'UserCustomerID', 'CustomerID', 'uidNumber', 0, 1, 'var', '', 1 ],
[ 'UserPhone', 'Phone', 'telephoneNumber', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
[ 'UserMobile', 'Mobile', 'mobile', 1, 0, 'var', '', 0 ],
],
};
My LDAP server is FreeIPA 3.0.0 shipped with RHEL 6.4 (389 Directory Server backend)
OTRS server is installed on Centos 6.4 using RPM and version is 3.2.9
Please see attached screenshots.
Thanks a lot for your help.
Alexandre