Branch 'kolab-syncroton-1.0' - lib/kolab_sync.php

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Thu Sep 27 11:21:34 CEST 2012


 lib/kolab_sync.php |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 9ba4a81571a3369549ebf30f94c06d8719a7fd75
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Thu Sep 27 10:20:34 2012 +0100

    Load the kolab_auth configuration as needed, warn about unset (required) configuration values

diff --git a/lib/kolab_sync.php b/lib/kolab_sync.php
index f044389..bd576e5 100644
--- a/lib/kolab_sync.php
+++ b/lib/kolab_sync.php
@@ -159,6 +159,8 @@ class kolab_sync extends rcube
      */
     private function get_ldap_user($username, $host)
     {
+        @include_once(RCMAIL_CONFIG_DIR . "/kolab_auth.inc.php");
+
         $login_attr  = $this->config->get('kolab_auth_login');
         $addressbook = $this->config->get('kolab_auth_addressbook');
         $filter      = $this->config->get('kolab_auth_filter');
@@ -170,10 +172,12 @@ class kolab_sync extends rcube
         }
 
         if (empty($addressbook)) {
+            $this->logger->warn("No address book configured to authenticate the user.");
             return null;
         }
 
         if (empty($login_attr)) {
+            $this->logger->warn("No login attribute configured.");
             return null;
         }
 





More information about the commits mailing list