From 3ae5eead194f6aff3ec3ba7e3d5718fc27f03179 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Tue, 20 Jan 2009 12:33:13 +0000
Subject: [PATCH] Remove LDAP_OPT_TIMELIMIT

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

diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php
index fb9fb4008..1be3e358f 100644
--- a/lib/SimpleSAML/Auth/LDAP.php
+++ b/lib/SimpleSAML/Auth/LDAP.php
@@ -23,10 +23,10 @@ class SimpleSAML_Auth_LDAP {
 
 		SimpleSAML_Logger::debug('Library - LDAP __construct(): Setup LDAP with host [' . $hostname . '] and tls [' . var_export($enable_tls, true) . ']');
 
-		ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
+#		ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
 		$this->ldap = @ldap_connect($hostname);
 #		ldap_set_option($this->ldap, LDAP_OPT_NETWORK_TIMEOUT, 2);
-		ldap_set_option($this->ldap, LDAP_OPT_TIMELIMIT, 2);
+#		ldap_set_option($this->ldap, LDAP_OPT_TIMELIMIT, 2);
 
 		if (empty($this->ldap)) 
 			throw new Exception('Error initializing LDAP connection with PHP LDAP library.');
@@ -130,7 +130,6 @@ class SimpleSAML_Auth_LDAP {
 				join(' & ', $searchbases));
 		}
 
-
 	}
 	
 	/**
-- 
GitLab