small patch for Kernel::System::Auth::Sync::LDAP

Locked
fjo
Znuny newbie
Posts: 1
Joined: 17 Apr 2013, 16:22
Znuny Version: 3.1.14
Real Name: Felix J. Ogris

small patch for Kernel::System::Auth::Sync::LDAP

Post by fjo »

Hi,

attached patch does two things:

1. In Kernel/Config.pm, one can write:

$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
UserFirstname => [ 'givenName', 'initials' ],
UserLastname => 'sn",
....
};

This way each agent's UserFirstname is set to her/his givenName and initials. Might be handy if you have a neat Active Directory and user names like "Felix" (givenName), "J." (initials), and "Ogris" (sn).

2. It saves all keys of UserSyncMap and their related values it got from AD/LDAP to the agent's preferences. IMHO the only way to pull in an agent's phone or fax number (or whatever you have in UserSyncMap) from LDAP or AD.

Patch is for OTRS 3.1.14, but might do on 3.0.x, 3.1.x, and 3.2.x as well.

--Felix
You do not have the required permissions to view the files attached to this post.
Locked