<!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 text="#000000" bgcolor="#ffffff">
<br>
<br>
On 12/08/2010 11:19, Sergio Rabellino wrote:
<blockquote cite="mid:4C63CACB.4060203@di.unito.it" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <br>
  <br>
config/preferences.php<br>
add two prefs as follow<br>
&nbsp;'authLDAPDn'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; 'o=MyOrg,uid=MyUser',<br>
&nbsp;'authLDAPPass'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; 'MyPASStoLDAP',<br>
  <br>
lib/NSSLDAPAuthenticator.php<br>
add below line 50<br>
&gt;&nbsp; protected $_ldapDn = NULL;<br>
&gt;&nbsp; protected $_ldapPass = NULL;<br>
add below line 73<br>
&gt;&nbsp;&nbsp; $this-&gt;_ldapDn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = $prefs['authLDAPDn'];<br>
&gt; &nbsp; $this-&gt;_ldapPass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = $prefs['authLDAPPass'];<br>
  <br>
change line 147 to &nbsp; if ( $ldapBind =
@ldap_bind($ldapConn,$this-&gt;_ldapDn,$this-&gt;_ldapPass) ) {<br>
change line 230 to &nbsp;&nbsp;&nbsp; if ( $ldapBind =
@ldap_bind($ldapConn,$this-&gt;_ldapDn,$this-&gt;_ldapPass) ) {<br>
</blockquote>
Aha, don't worry about previous message, I had the line numbers
slightly out from yours. :-)<br>
<pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.ZendTo.com">www.ZendTo.com</a>

Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM
</pre>
</body>
</html>