Re: Create a new environment variable using LDAP parameters

Alvaro Cordero <[email protected]> Thu, 14 May 2020 17:24:17 -0600
Newsgroups gmane.comp.otrs.user
Message-ID <CAKzf-ZOy3mbPzSyve=9k3McW9NtBwyXkqgUwKtnvF6fCbaoXzA@mail.gmail.com>
--===============6056387778175558337==
Content-Type: multipart/alternative; boundary="00000000000068e8a405a5a40085"

--00000000000068e8a405a5a40085
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello, there is a configuration of dynamic field to CustomerMap where you
can set Customer Information from LDAP resource into dynamic fields and get
those assigned and shown in tickets, that way you don't need to modify
anything, just create the dynamic fields, map the configuration and set
them into Config.pm in the order you want to show.

Best Regards.

El jue., 14 may. 2020 a las 9:11, Alexis HAUSER (<
[email protected]>) escribi=C3=B3:

> Hi,
>
>
> I found out that it was possible to modify Layout.pm to create a new
> environment variable.
>
> For example, it's possible to create a new variable called "New Variable"=
 :
> $Self->{NewVariable} =3D $ConfigObject->Get('DefaultTheme');
>
> And call it inside a .tt template file using :
> [% Env('NewVariable') %]
>
> I would like to get a LDAP parameters to define it there, in the Layout.p=
m
> This parameter is defined in Config.pm as "UserEntity", which is actually
> a parameter in our LDAP that we display on a ticket. What should I do to
> create a new variable containing it's value ?
> It seems it's not contained inside a ConfigObject but somewhere else...
>
>
> Regards
>
>
> ---------------------------------------------------------------------
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs
>


--=20

*Alvaro Cordero RetanaConsultor de Tecnologias*
*Tel: 22585757 ext 123*
*Email:* [email protected]

--00000000000068e8a405a5a40085
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello, there is a configuration of dynamic field to Custom=
erMap where you can set Customer Information from LDAP resource into dynami=
c fields and get those assigned=C2=A0and shown in tickets, that way you don=
&#39;t need to modify anything, just create the dynamic fields, map the con=
figuration and set them into Config.pm in the order you want to show.=C2=A0=
<div><br></div><div>Best Regards.=C2=A0</div></div><br><div class=3D"gmail_=
quote"><div dir=3D"ltr" class=3D"gmail_attr">El jue., 14 may. 2020 a las 9:=
11, Alexis HAUSER (&lt;<a href=3D"mailto:[email protected]">a=
[email protected]</a>&gt;) escribi=C3=B3:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex"><div><div style=3D"font-family:arial=
,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div>Hi,<br></div><d=
iv><br></div><div><br></div><div>I found out that it was possible to modify=
 Layout.pm to create a new environment variable.<br></div><div><br></div><d=
iv>For example, it&#39;s possible to create a new variable called &quot;New=
 Variable&quot; :</div><div>$Self-&gt;{NewVariable} =3D $ConfigObject-&gt;G=
et(&#39;DefaultTheme&#39;);<br></div><div><br></div><div>And call it inside=
 a .tt template file using :<br></div><div>[% Env(&#39;NewVariable&#39;) %]=
<br></div><div><br></div><div>I would like to get a LDAP parameters to defi=
ne it there, in the Layout.pm<br></div><div>This parameter is defined in Co=
nfig.pm as &quot;UserEntity&quot;, which is actually a parameter in our LDA=
P that we display on a ticket. What should I do to create a new variable co=
ntaining it&#39;s value ?<br></div><div>It seems it&#39;s not contained ins=
ide a ConfigObject but somewhere else...</div><div><br></div><div><br></div=
><div>Regards<br></div><div><br></div><div><br></div></div></div>----------=
-----------------------------------------------------------<br>
OTRS mailing list: otrs - Webpage: <a href=3D"http://otrs.org/" rel=3D"nore=
ferrer" target=3D"_blank">http://otrs.org/</a><br>
Archive: <a href=3D"http://lists.otrs.org/pipermail/otrs" rel=3D"noreferrer=
" target=3D"_blank">http://lists.otrs.org/pipermail/otrs</a><br>
To unsubscribe: <a href=3D"http://lists.otrs.org/mailman/listinfo/otrs" rel=
=3D"noreferrer" target=3D"_blank">http://lists.otrs.org/mailman/listinfo/ot=
rs</a><br>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
 class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div=
 dir=3D"ltr"><div><div dir=3D"ltr"><div><font color=3D"#666666"><i>Alvaro C=
ordero Retana<br>Consultor de Tecnologias</i></font></div><div><font color=
=3D"#666666"><i>Tel: 22585757 ext 123</i></font></div><div><i><font color=
=3D"#666666">Email:</font></i> <a href=3D"mailto:[email protected]" tar=
get=3D"_blank">[email protected]</a><br><img src=3D"http://www.gridshie=
ld.com/images/gs-signature.png"><br></div></div></div></div></div></div></d=
iv></div></div>

--00000000000068e8a405a5a40085--

--===============6056387778175558337==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs

--===============6056387778175558337==--