From c9a5916daa63635a6561036354780b57f717dfb5 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 24 Oct 2011 11:47:31 -0700 Subject: [PATCH] Handle hostnames with upper-case letters https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3427834&group_id=17457 --- ldap-client/ldap-client-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap-client/ldap-client-lib.pl b/ldap-client/ldap-client-lib.pl index fac85fe9..97370df7 100755 --- a/ldap-client/ldap-client-lib.pl +++ b/ldap-client/ldap-client-lib.pl @@ -231,7 +231,7 @@ if ($ldap_hosts) { elsif ($uri) { # Using uri directive foreach my $u (split(/\s+/, $uri)) { - if ($u =~ /^(ldap|ldaps|ldapi):\/\/([a-z0-9\_\-\.]+)(:(\d+))?/) { + if ($u =~ /^(ldap|ldaps|ldapi):\/\/([a-z0-9\_\-\.]+)(:(\d+))?/i) { ($proto, $host, $port) = ($1, $2, $4); if (!$port && $proto eq "ldap") { $port = 389; -- 2.17.1