summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJaime Pérez Crespo <jaime.perez@uninett.no>2015-05-18 09:24:30 +0200
committerJaime Pérez Crespo <jaime.perez@uninett.no>2015-05-18 09:24:30 +0200
commit8a38cde80228578ba9c21028848b2122cad5cff5 (patch)
treeadb529029238ac95dd056dcafedc65bca5f35a1f /lib
parent832a89bfcc76da2788a8b40993ada62e00b98657 (diff)
parent3cacf845e5a62f4f9aff6f0cb53e5ef676f4dc35 (diff)
downloadsimplesamlphp-8a38cde80228578ba9c21028848b2122cad5cff5.zip
simplesamlphp-8a38cde80228578ba9c21028848b2122cad5cff5.tar.gz
simplesamlphp-8a38cde80228578ba9c21028848b2122cad5cff5.tar.bz2
Merge pull request #202 from mschwager/master
LDAP Connection Improvements
Diffstat (limited to 'lib')
-rw-r--r--lib/SimpleSAML/Auth/LDAP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php
index 50cd5da..db95377 100644
--- a/lib/SimpleSAML/Auth/LDAP.php
+++ b/lib/SimpleSAML/Auth/LDAP.php
@@ -100,7 +100,7 @@ class SimpleSAML_Auth_LDAP {
}
// Enable TLS, if needed.
- if (!preg_match("/ldaps:/i", $hostname) and $enable_tls)
+ if (stripos($hostname, "ldaps:") === FALSE and $enable_tls)
if (!@ldap_start_tls($this->ldap))
throw $this->makeException('Library - LDAP __construct(): Unable to force TLS', ERR_INTERNAL);