Skip to content
Snippets Groups Projects
Commit 3ae5eead authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Remove LDAP_OPT_TIMELIMIT

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1180 44740490-163a-0410-bde0-09ae8108e29a
parent 10734aa4
No related branches found
No related tags found
No related merge requests found
...@@ -23,10 +23,10 @@ class SimpleSAML_Auth_LDAP { ...@@ -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) . ']'); 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); $this->ldap = @ldap_connect($hostname);
# ldap_set_option($this->ldap, LDAP_OPT_NETWORK_TIMEOUT, 2); # 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)) if (empty($this->ldap))
throw new Exception('Error initializing LDAP connection with PHP LDAP library.'); throw new Exception('Error initializing LDAP connection with PHP LDAP library.');
...@@ -130,7 +130,6 @@ class SimpleSAML_Auth_LDAP { ...@@ -130,7 +130,6 @@ class SimpleSAML_Auth_LDAP {
join(' & ', $searchbases)); join(' & ', $searchbases));
} }
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment