projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78b07a6
)
Handle hostnames with upper-case letters
master
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 24 Oct 2011 18:47:31 +0000
(11:47 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 24 Oct 2011 18:47:31 +0000
(11:47 -0700)
https://sourceforge.net/tracker/?func=detail&atid=117457&aid=
3427834
&group_id=17457
ldap-client/ldap-client-lib.pl
patch
|
blob
|
history
diff --git
a/ldap-client/ldap-client-lib.pl
b/ldap-client/ldap-client-lib.pl
index
fac85fe
..
97370df
100755
(executable)
--- 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;