[horde] LDAP v3 [PATCH]

Andrew Coleman mercury at appisolutions.net
Tue Jun 15 09:58:59 PDT 2004


Andrew Coleman wrote:

> So for the past day and a half or so, I have been trying to get LDAP 
> user authentication working. I managed to get the users to log into the 
> console and ssh just fine. Getting Horde's LDAP authentication was quite 
> a bit more complex, being as how OpenLDAP doesn't include LDAPv2 support 
> by default. After watching the output from slapd, i figured out that 
> Horde is using LDAPv2 to communicate with the server. Is there any way 
> to allow LDAPv3 support? I have looked (briefly) at the php dox for LDAP 
> and have found nothing in the way of specifying a protocol...
> 
> Thanks,
> 
> Coleman

Ah, so after further digging, it is discovered that there is a 
$conf['auth']['params']['version'] available to change the LDAP protocol 
version. Here is a patch for Horde's conf.xml to allow changing of the 
protocol version.

Cheers,

Coleman
-------------- next part --------------
--- /mnt/storage/var/www/horde/config/conf.xml	2004-05-17 03:52:32.000000000 -0500
+++ conf.xml	2004-06-15 11:51:18.624731000 -0500
@@ -413,6 +413,10 @@
         search for users."/>
        </case>
       </configswitch>
+	  <configswitch name="version" required="false" desc="LDAP Version">2
+	   <case name="2" desc="LDAPv2 (Deprecated)" />
+	   <case name="3" desc="LDAPv3" />
+	  </configswitch>
      </configsection>
     </case>
 


More information about the horde mailing list