I was just trying to dig up the same thing from my own config.
Once you add all the telephone details into your LDAP config for each user you can use
UserPhone => [ 'telephoneNumber' ],
to get this information to display in each ticket for a customer.
Kind regards,
Rory Clerkin
On 26 September 2011 10:13, Phil Bieber
<philbieber@gmail.com> wrote:
Hi!
You can use the UserSyncMap Feature to achive just that, at least when you have the data in your LDAP.
In your otrs\Kernel\Config.pm, you have configured the LDAP connection. After That, just add the UserSyncMap, just like the following:
$Self->{"AuthSyncModule1"} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{"AuthSyncModule::LDAP::Host1"} = [ '192.168.1.10' ];
$Self->{"AuthSyncModule::LDAP::BaseDN1"} = "dc=example, dc=com";
$Self->{'AuthSyncModule::LDAP::SearchUserDN1'} = 'user@example.com';
$Self->{'AuthSyncModule::LDAP::SearchUserPw1'} = 'securepw';
$Self->{'AuthSyncModule::LDAP::UID1'} = "sAMAccountName";
$Self->{'AuthSyncModule::LDAP::Die1'} = 1;
$Self->{'AuthSyncModule::LDAP::AccessAttr1'} = "member";
$Self->{'AuthSyncModule::LDAP::UserAttr1'} = "DN";
# $Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups1'} = [ 'users', ];
$Self->{'AuthSyncModule::LDAP::UserSyncMap1'} = {
UserFirstname => [ 'givenName', 'initials', ],
UserLastname => [ 'sn' ],
UserEmail => [ 'mail' ],
#UserSalutation => [ 'salutation' ],
UserTitle => [ 'title' ],
UserPhone => [ 'telephoneNumber' ],
UserFax => [ 'facsimileTelephoneNumber' ],
};
Just adapt it to your needs!
HTH
Cheers
Phil.
--
It might be just possible, by lying very still in a cellar somewhere,
to get through a day without committing a crime. But only just. And,
even then, you were probably guilty of loitering.
- Terry Pratchett: Feet of clay.
GPG KEY ID (Philipp Bieber): 0x0185E301
FINGERPRINT: CA81 28C2 E63F DAF8 5ED4 DACB 7C26 EE5B 0185 E301
Philipp Bieber - philbieber@gmail.com
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs