From 8a6e9b060334bab4d8d2ddcbdb4de32241c7f7e1 Mon Sep 17 00:00:00 2001
From: Adrian Lang <lang@cosmocode.de>
Date: Wed, 5 May 2010 14:47:23 +0200
Subject: [PATCH] Add debug message for adLDAP class construction

---
 inc/auth/ad.class.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/inc/auth/ad.class.php b/inc/auth/ad.class.php
index a52f5f8b2..9ae6dbbd1 100644
--- a/inc/auth/ad.class.php
+++ b/inc/auth/ad.class.php
@@ -260,6 +260,9 @@ class auth_ad extends auth_basic {
             }
             return true;
         } catch (adLDAPException $e) {
+            if ($this->cnf['debug']) {
+                msg($e->getMessage(), -1);
+            }
             $this->success = false;
             $this->adldap  = null;
         }
-- 
GitLab