Displaying photos from Active Directory of customers

Moderator: crythias

Post Reply
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Displaying photos from Active Directory of customers

Post by spiderpig »

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?
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Displaying photos from Active Directory of customers

Post by spiderpig »

no one? :)
root
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

Post by root »

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 ?
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Displaying photos from Active Directory of customers

Post by spiderpig »

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.
Post Reply