lib/Auth

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Sun Aug 18 14:29:11 CEST 2013


 lib/Auth/LDAP.php |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 5ade20ff829f7c68f5550bfbe9682c5d1170722f
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Sun Aug 18 14:28:53 2013 +0200

    Allow the configuration of a login filter

diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index ebafe1b..1ba7c8e 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -52,6 +52,12 @@ class LDAP extends Net_LDAP3 {
         $this->config_set("service_bind_dn", $this->conf->get("service_bind_dn"));
         $this->config_set("service_bind_pw", $this->conf->get("service_bind_pw"));
 
+        $login_filter = $this->conf->get("kolab_wap", "login_filter");
+
+        if (!empty($login_filter)) {
+            $this->config_set("login_filter", $this->conf->get("login_filter"));
+        }
+
         // See if we are to connect to any domain explicitly defined.
         if (empty($domain)) {
             // If not, attempt to get the domain from the session.




More information about the commits mailing list