[imp] Fwd: /horde/imp/templates/login.inc ; /horde/imp/config.php and other

Jan Schneider jan@horde.org
Sat, 20 Jul 2002 17:22:45 +0200


This message is in MIME format.

---------------------- multipart/mixed attachment
Please Cc: this guy, I don't know if he's on the list.

----- Weitergeleitete Nachricht von jdelrio@uniandes.edu.co -----
    Datum: Fri, 19 Jul 2002 09:59:33 -0500
    Von: Juan Manuel Del Rio Castañeda <jdelrio@uniandes.edu.co>
Antwort an: Juan Manuel Del Rio Castañeda <jdelrio@uniandes.edu.co>
 Betreff: /horde/imp/templates/login.inc ; /horde/imp/config.php and other
      An: jan@ammma.de

Jan

 

Hi, I’ve seen that there are a lot of enthusiasm with the Horde Project,
here we’re excited about the pgp implementation success, that would remove
the sense of insecurity of the email system (actually the web client is in
many ways the safest client).

 

First please see our site (http://correo.uniandes.edu.co
<http://correo.uniandes.edu.co/> ) We installed a digital certificate for
the horde server, so there are two options the plain connection and the
ssled connection, given that we had to add a couple of lines in the
/horde/imp/templates/login.inc file:

 

<?php if (!empty($conf['user']['allow_ssl_redirection']) &&
($conf['user']['allow_ssl_redirection'] == true)): ?>

<tr>

    <td align="right" class="light">

        <b><?= _("Security") ?></b>&nbsp;

    </td>

    <td>

        <input type="radio" name="connectionsecurity" value="sslconnection" 

            <? if ( empty($_SERVER["HTTPS"])  ) echo  "checked"; ?> 

            onClick="selectSecurityConnection('<?php echo
$conf['user']['non_ssl_url']?>')" > <?=_("Standard")?>

        <input type="radio" name="connectionsecurity" value="clearconnection" 

            <? if ( !empty($_SERVER["HTTPS"]) ) echo "checked"; ?> 

            onClick="selectSecurityConnection('<?php echo
$conf['user']['ssl_url']?>')" > <?=_("Enhanced") ?>

    </td>

</tr>

<?php endif; ?>

 

As you can see it’s mandatory to have the
$conf['user']['allow_ssl_redirection'] and the
($conf['user']['allow_ssl_redirection'], I put them in the conf.php file,
but I’m not completely sure about the place /horde/conf/conf.php although
it works for me. Also the conf environment variables are in that way well
suitable?. Anyway.

 

The additional lines look like:

 

// If this is true, then users can switch to the imp ssl connection

// If this is false, then there will be just the site allowed.

$conf['user']['allow_ssl_redirection'] = true;

//ssled Instance of Imp

$conf['user']['ssl_url'] = 'https://correo.uniandes.edu.co/horde/imp';

//Standard Installation of Imp

$conf['user']['non_ssl_url'] = 'http://correo.uniandes.edu.co/horde/imp';

 

I sent the former suggestions to Eric Rostestter but he hasn’t replied to
me (he’s probably busy) so I decided sent them to you to see what happens.

 

Well, another thing, I made several changes to the html selects eg: <select
tabindex="3" class="small" name="server"><?= $servers_list ?></select> in
order to give the same look to the whole application, would be nice that
change, don’t you think?

 

 

Additionally the hook for the ldap expand address has some problems with the
latest versions of php (you know the register_globals problem), I changed
the == statement with isset statements, so probably those must be changed
now that they’re inside the distribution J

 

/* This is another example how to get the user's full name from an ldap server.

 * In this example we look if a Spanish name exists and return this or the

 * standard 'cn' entry if not.

 */

if (!function_exists('imp_set_fullname')) {

    function imp_set_fullname($imp) {

        $ldapServer = 'ldap.uniandes.edu.co';

        $ldapPort = '389';

        $searchBase = 'ou=people,o=uniandes.edu.co';

 

        $ds = @ldap_connect($ldapServer, $ldapPort);

 

        $searchResult = @ldap_search($ds, $searchBase, 'uid=' . $imp['user']);

        $information = @ldap_get_entries($ds, $searchResult);

        if (isset($information[0]['cn;lang-es'][0]) ) {

             $name = $information[0]['cn;lang-es'][0];

        } else {

            $name = $information[0]['cn'][0];

        }

 

        ldap_close($ds);

 

        return (empty($name) ? $imp['user'] : $name);

    }

}

Juan Manuel Del Río

Ingeniero

Dirección de Tecnologías de Información

Universidad de los Andes

+57 1 3324480 Ext 2990

 

----- Ende der weitergeleiteten Nachricht -----


Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
---------------------- multipart/mixed attachment

------=_NextPart_001_0017_01C22F0A.FAAA2BF0
Jan

=20

Hi, I=E2=80=99ve seen that there are a lot of enthusiasm with the Horde =
Project, here we=E2=80=99re excited about the pgp implementation =
success, that would remove the sense of insecurity of the email system =
(actually the web client is in many ways the safest client).

=20

First please see our site (http://correo.uniandes.edu.co =
<http://correo.uniandes.edu.co/> ) We installed a digital certificate =
for the horde server, so there are two options the plain connection and =
the ssled connection, given that we had to add a couple of lines in the =
/horde/imp/templates/login.inc file:

=20

<?php if (!empty($conf['user']['allow_ssl_redirection']) && =
($conf['user']['allow_ssl_redirection'] =3D=3D true)): ?>

<tr>

    <td align=3D"right" class=3D"light">

        <b><?=3D _("Security") ?></b>&nbsp;

    </td>

    <td>

        <input type=3D"radio" name=3D"connectionsecurity" =
value=3D"sslconnection"=20

            <? if ( empty($_SERVER["HTTPS"])  ) echo  "checked"; ?>=20

            onClick=3D"selectSecurityConnection('<?php echo =
$conf['user']['non_ssl_url']?>')" > <?=3D_("Standard")?>

        <input type=3D"radio" name=3D"connectionsecurity" =
value=3D"clearconnection"=20

            <? if ( !empty($_SERVER["HTTPS"]) ) echo "checked"; ?>=20

            onClick=3D"selectSecurityConnection('<?php echo =
$conf['user']['ssl_url']?>')" > <?=3D_("Enhanced") ?>

    </td>

</tr>

<?php endif; ?>

=20

As you can see it=E2=80=99s mandatory to have the =
$conf['user']['allow_ssl_redirection'] and the =
($conf['user']['allow_ssl_redirection'], I put them in the conf.php =
file, but I=E2=80=99m not completely sure about the place =
/horde/conf/conf.php although it works for me. Also the conf environment =
variables are in that way well suitable?. Anyway.

=20

The additional lines look like:

=20

// If this is true, then users can switch to the imp ssl connection

// If this is false, then there will be just the site allowed.

$conf['user']['allow_ssl_redirection'] =3D true;

//ssled Instance of Imp

$conf['user']['ssl_url'] =3D 'https://correo.uniandes.edu.co/horde/imp';

//Standard Installation of Imp

$conf['user']['non_ssl_url'] =3D =
'http://correo.uniandes.edu.co/horde/imp';

=20

I sent the former suggestions to Eric Rostestter but he hasn=E2=80=99t =
replied to me (he=E2=80=99s probably busy) so I decided sent them to you =
to see what happens.

=20

Well, another thing, I made several changes to the html selects eg: =
<select tabindex=3D"3" class=3D"small" name=3D"server"><?=3D =
$servers_list ?></select> in order to give the same look to the whole =
application, would be nice that change, don=E2=80=99t you think?

=20

=20

Additionally the hook for the ldap expand address has some problems with =
the latest versions of php (you know the register_globals problem), I =
changed the =3D=3D statement with isset statements, so probably those =
must be changed now that they=E2=80=99re inside the distribution J

=20

/* This is another example how to get the user's full name from an ldap =
server.

 * In this example we look if a Spanish name exists and return this or =
the

 * standard 'cn' entry if not.

 */

if (!function_exists('imp_set_fullname')) {

    function imp_set_fullname($imp) {

        $ldapServer =3D 'ldap.uniandes.edu.co';

        $ldapPort =3D '389';

        $searchBase =3D 'ou=3Dpeople,o=3Duniandes.edu.co';

=20

        $ds =3D @ldap_connect($ldapServer, $ldapPort);

=20

        $searchResult =3D @ldap_search($ds, $searchBase, 'uid=3D' . =
$imp['user']);

        $information =3D @ldap_get_entries($ds, $searchResult);

        if (isset($information[0]['cn;lang-es'][0]) ) {

             $name =3D $information[0]['cn;lang-es'][0];

        } else {

            $name =3D $information[0]['cn'][0];

        }

=20

        ldap_close($ds);

=20

        return (empty($name) ? $imp['user'] : $name);

    }

}

Juan Manuel Del R=C3=ADo

Ingeniero

Direcci=C3=B3n de Tecnolog=C3=ADas de Informaci=C3=B3n

Universidad de los Andes

+57 1 3324480 Ext 2990

=20


------=_NextPart_001_0017_01C22F0A.FAAA2BF0
<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dutf-8">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EstiloCorreo17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Jan</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi, I=E2=80=99ve seen that there are a lot of =
enthusiasm with the
Horde Project, here we=E2=80=99re excited about the pgp implementation =
success, that
would remove the sense of insecurity of the email system (actually the =
web
client is in many ways the safest client).</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>First please see our site (<a
href=3D"http://correo.uniandes.edu.co/">http://correo.uniandes.edu.co</a>=
) We
installed a digital certificate for the horde server, so there are two =
options
the plain connection and the ssled connection, given that we had to add =
a
couple of lines in the /horde/imp/templates/login.inc =
file:</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&lt;?php if =
(!empty($conf['user']['allow_ssl_redirection'])
&amp;&amp; ($conf['user']['allow_ssl_redirection'] =3D=3D true)): =
?&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&lt;tr&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>=C2=A0 =C2=A0=C2=A0&lt;td =
align=3D&quot;right&quot;
class=3D&quot;light&quot;&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
&lt;b&gt;&lt;?=3D _(&quot;Security&quot;)
?&gt;&lt;/b&gt;&amp;nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>=C2=A0 =
=C2=A0=C2=A0&lt;/td&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>=C2=A0 =
=C2=A0=C2=A0&lt;td&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
=C2=A0=C2=A0&lt;input type=3D&quot;radio&quot; =
name=3D&quot;connectionsecurity&quot;
value=3D&quot;sslconnection&quot; </span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
=C2=A0=C2=A0=C2=A0=C2=A0&lt;? if (
empty($_SERVER[&quot;HTTPS&quot;])=C2=A0 ) echo =
=C2=A0&quot;checked&quot;; ?&gt; </span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
onClick=3D&quot;selectSecurityConnection('&lt;?php
echo $conf['user']['non_ssl_url']?&gt;')&quot; &gt;
&lt;?=3D_(&quot;Standard&quot;)?&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
=C2=A0=C2=A0&lt;input type=3D&quot;radio&quot; =
name=3D&quot;connectionsecurity&quot;
value=3D&quot;clearconnection&quot; </span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
&lt;? if (
!empty($_SERVER[&quot;HTTPS&quot;]) ) echo &quot;checked&quot;; ?&gt; =
</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
onClick=3D&quot;selectSecurityConnection('&lt;?php
echo $conf['user']['ssl_url']?&gt;')&quot; &gt; =
&lt;?=3D_(&quot;Enhanced&quot;)
?&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>=C2=A0 =
=C2=A0=C2=A0&lt;/td&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&lt;/tr&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>&lt;?php endif; ?&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>As you can see it=E2=80=99s mandatory to have the =
</span></font><font
size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>$conf['user']['allow_ssl_redirection']
</span></font><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial'>and the</span></font><font size=3D1 face=3D"Courier New"><span
style=3D'font-size:9.0pt;font-family:"Courier New"'> =
($conf['user']['allow_ssl_redirection'],
</span></font><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial'>I put them in the conf.php file, but I=E2=80=99m not completely =
sure about the place</span></font><font
size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;font-family:"Courier New"'>
/horde/conf/conf.php </span></font><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>although it works for me. =
Also the
conf environment variables are in that way well suitable?. =
Anyway.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The additional lines look like:</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>// If this is true, then users can switch to =
the imp
ssl connection</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>// If this is false, then there will be just =
the
site allowed.</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$conf['user']['allow_ssl_redirection'] =3D =
true;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>//ssled Instance of Imp</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$conf['user']['ssl_url'] =3D =
'https://correo.uniandes.edu.co/horde/imp';</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>//Standard Installation of =
Imp</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt;
font-family:"Courier New"'>$conf['user']['non_ssl_url'] =3D =
'http://correo.uniandes.edu.co/horde</span></font><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>/imp';</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<div style=3D'border:none;border-bottom:solid windowtext =
1.0pt;padding:0cm 0cm 1.0pt 0cm'>

<p class=3DMsoNormal style=3D'border:none;padding:0cm'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I sent the former =
suggestions to
Eric Rostestter but he hasn=E2=80=99t replied to me (he=E2=80=99s =
probably busy) so I decided
sent them to you to see what happens.</span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Well, another thing, I made several changes to the =
html
selects eg: &lt;select tabindex=3D&quot;3&quot; <font color=3Dred><span
style=3D'color:red'>class=3D&quot;small&quot;</span></font>
name=3D&quot;server&quot;&gt;&lt;?=3D $servers_list ?&gt;&lt;/select&gt; =
in order
to give the same look to the whole application, would be nice that =
change, don=E2=80=99t
you think?</span></font></p>

<div style=3D'border:none;border-bottom:solid windowtext =
1.0pt;padding:0cm 0cm 1.0pt 0cm'>

<p class=3DMsoNormal style=3D'border:none;padding:0cm'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Additionally the hook for the ldap expand address has =
some
problems with the latest versions of php (you know the register_globals
problem), I changed the =3D=3D statement with isset statements, so =
probably those
must be changed now that they=E2=80=99re inside the distribution =
</span></font><font
size=3D2 face=3DWingdings><span =
style=3D'font-size:10.0pt;font-family:Wingdings'>J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DES-CO =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier New"'>/* This is another =
example
how to get the user's full name from an ldap server.</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier New"'>=C2=A0* In this =
example we look if
a Spanish name exists and return this or the</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier New"'>=C2=A0* standard =
'cn' entry if not.</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0*/</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier New"'>if =
(!function_exists('imp_set_fullname'))
{</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0 =
function imp_set_fullname($imp)
{</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $ldapServer =3D =
'ldap.uniandes.edu.co';</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $ldapPort =3D =
'389';</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $searchBase =3D =
'ou=3Dpeople,o=3Duniandes.edu.co';</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $ds =3D =
@ldap_connect($ldapServer,
$ldapPort);</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $searchResult =3D =
@ldap_search($ds,
$searchBase, 'uid=3D' . $imp['user']);</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $information =3D =
@ldap_get_entries($ds,
$searchResult);</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (<font =
color=3Dred><span
style=3D'color:red'>isset($information[0]['cn;lang-es'][0]</span></font>)=
 ) {</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 $name =3D $information[0]['cn;lang-es'][0];</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } else =
{</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
$name =3D $information[0]['cn'][0];</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
ldap_close($ds);</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return (empty($name)
? $imp['user'] : $name);</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0 =
}</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
lang=3DES-CO
style=3D'font-size:9.0pt;font-family:"Courier New"'>}</span></font></p>

<p class=3DMsoAutoSig><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Juan Manuel Del R=C3=ADo</span></font></p>

<p class=3DMsoAutoSig><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Ingeniero</span></font></p>

<p class=3DMsoAutoSig><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Direcci=C3=B3n de Tecnolog=C3=ADas de =
Informaci=C3=B3n</span></font></p>

<p class=3DMsoAutoSig><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Universidad de los </span></font><font size=3D2 =
face=3DArial><span
 style=3D'font-size:10.0pt;font-family:Arial'>Andes</span></font></p>

<p class=3DMsoAutoSig><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>+57 1 3324480 Ext 2990</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DES-CO
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

</body>

</html>

------=_NextPart_001_0017_01C22F0A.FAAA2BF0--
------=_NextPart_001_0017_01C22F0A.FAAA2BF0
Content-Type: text/plain; charset=utf-8; name="unnamed"; charset=us-ascii
Content-Description: unnamed
Content-Disposition: inline; filename="unnamed"
Content-Transfer-Encoding: quoted-printable


------=_NextPart_001_0017_01C22F0A.FAAA2BF0
Content-Type: text/html; charset=utf-8; name="unnamed"; charset=us-ascii
Content-Description: unnamed
Content-Disposition: inline; filename="unnamed"
Content-Transfer-Encoding: quoted-printable


------=_NextPart_001_0017_01C22F0A.FAAA2BF0--

------
Content-Type: application/x-pkcs7-signature; name=smime.p7s; name="smime.p7s"
Content-Description: smime.p7s
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII+TCCAogw
ggHxoAMCAQICAwViWDANBgkqhkiG9w0BAQIFADCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdl
c3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsT
FENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAw
MC44LjMwMB4XDTAxMDgwNzAwMzYzMFoXDTAyMDgwNzAwMzYzMFowSTEfMB0GA1UEAxMWVGhhd3Rl
IEZyZWVtYWlsIE1lbWJlcjEmMCQGCSqGSIb3DQEJARYXamRlbHJpb0B1bmlhbmRlcy5lZHUuY28w
gZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAM0uqmtJP3dQ7zqw5PffxNsb8lSCmsSOfnaSN3X1
x+HSKNkH8qIbJK1JRhBNwls/pOAhXlUknvFGcHuOQrj8wJsfEBYeKgtg5tSxwkODeDqa8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