From b218975c4a66168326491b1445b165c319c6ec86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Wed, 12 Mar 2008 12:20:53 +0000
Subject: [PATCH] Improved error message

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@401 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SimpleSAML/Auth/LDAP.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php
index 11674198e..06d92926f 100644
--- a/lib/SimpleSAML/Auth/LDAP.php
+++ b/lib/SimpleSAML/Auth/LDAP.php
@@ -35,7 +35,7 @@ class SimpleSAML_Auth_LDAP {
 		
         if ($enable_tls) {
             if (!@ldap_start_tls($this->ldap)) {
-                throw new Exception('Could not force LDAP into TLS-session. Please verify certificates and configuration');
+                throw new Exception('Could not force LDAP into TLS-session. Please verify certificates and configuration. Could also be that PHP the LDAP library cannot connect to the LDAP server [' . $hostname . ']: ' . ldap_error($this->ldap) );
             }
         }
 
-- 
GitLab