Hi guys,
I'm trying to add customers photos to the ticketzoom screen from A.D., I followed lameventanas way shown in this thread:
viewtopic.php?f=60&t=22217
But I'm getting "internal error" when I'm entering the ticketzoom screen. I'm running OTRS 5, anyone wth 5 who got it worked?
Displaying photos from Active Directory of customers
Moderator: crythias
-
- Administrator
- Posts: 4004
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Displaying photos from Active Directory of customers
You should solve the "Internal error" What does the error_log of the webserver contain?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: Displaying photos from Active Directory of customers
root wrote:You should solve the "Internal error" What does the error_log of the webserver contain?
there are no error for the webserver, I get an internal error when I add:
[ 'UserPhoto', 'Photo', 'thumbnailPhoto', 1, 0, 'image/jpeg', '', 0 ],
to the map of the ldap in the config.pm
also i add in to /otrs/kernel/output/html/layout/Ticket.pm:
if ($Field->[5] =~ /^image\/.+/) {
use MIME::Base64;
$Record{LinkStart} = "<img style=\"max-width:96px;max-height:96px;\" src=\"data:$Field->[5];base64," .
MIME::Base64::encode_base64($Param{Data}->{ $Field->[0] }, '') .
"\" alt=\"$Field->[1]\" />";
$Record{Value} = "";
}
if I remove the code everything works again.