<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi again,<br>
<br>
One more question:<br>
<br>
I haven't modified the "storage.php" file, so the storage is still by
MySQL, but don't you think that, maybe, "getAccountForURL" function
should work with LDAP instead MySQL? If this wasn't correct, could you
tell me why?<br>
<br>
Finally, this is how I've rewritten "authenticate" function in
"auth.php" file:<br>
<br>
function authenticate($username, $password)<br>
{<br>
if ($username == null) {<br>
return false;<br>
}<br>
$user = $this->get_ldap_user($username);<br>
<br>
$password=md5($password);<br>
<br>
if(strcmp($password,$user['password'][0])==0)<br>
$result=true;<br>
<br>
ldap_bind($this->conn, $this->bind_username,
$this->bind_password);<br>
<br>
return $result;<br>
}<br>
<br>
Is there any error? Some kind of insecurity?<br>
<br>
Newly, thanks a lot in advance.<br>
<br>
Cheers,<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<o:SmartTagType name="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType>
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
BODY, p, div, span { FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;
        font-weight:bold;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;
        font-weight:bold;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div><br>
<br>
<p class="MsoNormal" style="vertical-align: bottom;">
<span
style="font-family: Arial; font-size: 9pt; color: rgb(29, 57, 141);">Antonio
Martínez Martínez</span></p>
<p class="MsoNormal" style="vertical-align: top;">
<font color="#5b707c" face="Arial" size="1"><span
style="font-size: 7pt; color: rgb(91, 112, 124); font-family: Arial;">
Consultor</span></font></p>
<p class="MsoNormal" style="vertical-align: top;">
<font color="#5b707c" face="Arial" size="1"><span
style="font-size: 7pt; color: rgb(91, 112, 124); font-family: Arial;">____________________________________________<o:p></o:p></span></font></p>
<p class="MsoNormal" style="line-height: 30pt;"><b><font color="#140a69"
face="Arial" size="2"><span
style="font-weight: bold; font-size: 10.5pt; color: rgb(20, 10, 105); font-family: Arial;"><img
id="_x0000_i1029" alt="Altran" src="cid:part1.05030801.05060301@tid.es"
align="bottom" border="0" height="35" width="116"><o:p></o:p></span></font></b></p>
<p class="MsoNormal"><font color="#5b707c" face="Arial" size="1"><span
style="font-size: 7pt; color: rgb(91, 112, 124); font-family: Arial;">Parque
Empresarial Las Mercedes, Edificio 1 <br>
C/ Campezo, 1. 28022 Madrid<br>
Tel : + 34 91 744 46 00<br>
Fax: + 34 91 415 24 57</span></font></p>
<p class="MsoNormal"><font color="#5b707c" face="Arial" size="1"><span
style="font-size: 7pt; color: rgb(91, 112, 124); font-family: Arial;"> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="#5b707c" face="Arial" size="1"><span
style="font-size: 7pt; color: rgb(91, 112, 124); font-family: Arial;"><a
href="http://www.altransdb.com" target="_blank"><font color="#5b707c"><span
style="color: rgb(91, 112, 124); font-size: 7pt;">www.altransdb.com</span></font></a></span></font><font
color="#5b707c" face="Arial" size="1"><span
style="font-size: 7pt; color: rgb(91, 112, 124); font-family: Arial;"><o:p></o:p></span></font></p>
</div>
<div> </div>
<!--[if gte mso 9]><xml>
<u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u1:shapelayout u3:ext="edit">
<u1:idmap u3:ext="edit" data="1"/>
</u1:shapelayout>
</xml><![endif]--><span
style="color: green; font-style: italic; font-weight: bold;">Antes de
imprimir, piense en el medio ambiente.<br>
Before you print, think about the environment</span></div>
</body>
</html>