<!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,<br>
<br>
I don't know how exactly express my thankfulness to Marco Aur&eacute;lio
(specially) and Jonathan. Your help has been very important to me. The
AuthBackend_LDAP class works very well and it's what I was looking for.
Now, I ALMOST have my system perfectly running, with authentication
provided by LDAP and storage provided by MySQL.<br>
But, while reading&nbsp; the&nbsp; class code, I don't understand&nbsp; a pair of
things at all. <br>
<br>
In "authenticate" function, it appears next:<br>
<br>
$result = @ldap_bind($this-&gt;conn, $user['dn'], $password);<br>
$result = ldap_bind($this-&gt;conn, $this-&gt;bind_username,
$this-&gt;bind_password);<br>
<br>
Because of I'm quite "rookie" in LDAP, I don't know where exactly the
authentication is made. Before these lines, the "get_ldap_user"
function is called. There, it's made a search (ldap_search) in order to
match the "$username" in "base_dn", isn't it?<br>
<br>
Then, I obtain "$user" thanks to "ldap_get_entries". Well, what I don't
understand is why "ldap_bind" is necessary twice then. Please, "light"
me with the LDAP authentication. <br>
<br>
The highest thanks to Marco Aur&eacute;lio and Jonathan for your support. <br>
<br>
Best regards,<br>
<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&iacute;nez Mart&iacute;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.03010507.02010603@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;">&nbsp;<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>&nbsp;</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>