In mod_ldap.c, v2.9.3 there is a bug with the LDAPUsers config value.

set_ldap_userlookups was ignoring the last parameter, so any attempt to set a "uid-number-filter-template" failed. The default filter is applied ok, but any attempt to change it results in no filter.

Here's a patch which addresses the fault:

--- ../mod_ldap/mod_ldap.c      2014-11-13 08:47:22.328573698 +0100
+++ contrib/mod_ldap.c  2014-11-13 09:50:42.824638637 +0100
@@ -1716,6 +1716,9 @@
   if (cmd->argc > 2) {
     c->argv[1] = pstrdup(c->pool, cmd->argv[2]);
   }
+  if (cmd->argc > 3) {
+    c->argv[2] = pstrdup(c->pool, cmd->argv[3]);
+  }

   return PR_HANDLED(cmd);
 }


Cheers,
Pete.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
ProFTPD Developers List
<proftpd-de...@proftpd.org>
https://lists.sourceforge.net/lists/listinfo/proftp-devel

Reply via email to