<!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">
Jonathan Daugherty escribi&oacute;:
<blockquote cite="mid20070411170104.GC10049@janrain.com" type="cite">
  <pre wrap=""># 1) When you say "make sure AuthBackend_LDAP is included in the
# namespace", what do you refer exactly? I don't understand what
# "namespace" is at all.

If AuthBackend_LDAP is in file MyAuth.php, make sure that file has
been included/required using include_once or require_once.

# 2) I've been reviewing the package's files, and I think that I
# should change some more files, shouldn't I?  I'm refering, for
# example, to "storage.php", "common.php" or "backend.php".

Well, we are talking specifically about authentication; not storage of
the identity URLs used by the server.  If you create the class as I
described and update your config.php to use the new backend, that is
all you should have to do.

HTH,

  </pre>
</blockquote>
Hi Jonathan,<br>
<br>
I've been working several days trying to implement an LDAP directory
instead MySQL as Backend. I've tried to follow your advice, and I've
been writing a class that implements the same interface as
AuthBackend_MYSQL and updated config.php to use it.By now, my class
just have the "authenticate" method, because the only thing I like by
the moment is checking that user, password and url are in the LDAP
directory and that they are correct. I've modify next files:<br>
<br>
- auth.php ---&gt; auth_LDAP.php (class AuthBackend_MYSQL ---&gt;
AuthBackend_LDAP)<br>
- storage.php (class Storage_MYSQL ----&gt; Storage_LDAP, and modify
the "getAccountForUrl" method, now that search is made with LDAP
comands)<br>
- backends.php ---&gt; backends_LDAP.php (class Backend_MYSQL----&gt;
Backend_LDAP)<br>
- config.php ----&gt; config_LDAP.php (I've changed the defines and the
$storage_parameters)<br>
<br>
Now, I have this error on render.php, inside "render_serve" method:<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Call to a member function isTrusted() on a non-object<br>
<br>
when execute the line: " else if ($storage-&gt;isTrusted($account,
$request-&gt;trust_root) &amp;&amp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;
in_array($request-&gt;identity, $urls)&amp;&amp;$account)"<br>
<br>
and it seems to be because "global $storage" doesn't exist. <br>
<br>
Have you got any idea of what is happening? If you want to see some of
the code, I show you delighted. I'm quite lost with the MySQL-LDAP
migration. I thought it would be easier, but not for now. Maybe I'm not
seeing something. Please, any kind of help is welcome.<br>
<br>
Once again, thanks in advance for your priceless support.<br>
<br>
Best regards,<br>
<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.08060903.01010206@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>