How to fill UserEmail if there is no mail from LDAP?

Moderator: crythias

Locked
magicloud
Znuny newbie
Posts: 3
Joined: 22 Apr 2011, 07:22
Znuny Version: 3.0

How to fill UserEmail if there is no mail from LDAP?

Post by magicloud »

Hi,
Just found this exciting tool, but I am not good at perl language, thus I got this problem.
When configuring AD in OTRS, I copied this from the document:
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
Here it maps mail field from AD data to UserEmail field in OTRS DB. Well, the AD I am using does not including the mail information. Everyone's mail address is just $cn@company.com.
So I wonder, how to fill UserEmail field in this condition?
Thanks.
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: How to fill UserEmail if there is no mail from LDAP?

Post by ferrosti »

In case mailaddress is not needed or invalid, one can think of using 'UserPrincipalName' instead.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
Locked