Fix auto-selected port
authorJamie Cameron <jcameron@webmin.com>
Sun, 8 Feb 2009 02:40:39 +0000 (02:40 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 8 Feb 2009 02:40:39 +0000 (02:40 +0000)
ldap-client/ldap-client-lib.pl

index 0bf975d..59b33c7 100644 (file)
@@ -247,7 +247,7 @@ else {
                   $ssl eq 'start_tls' ? 2 : 0;
        local @hosts = split(/[ ,]+/, &find_svalue("host", $conf));
        local $port = &find_svalue("port", $conf) ||
-                     $use_ssl ? 636 : 389;
+                     ($use_ssl == 1 ? 636 : 389);
        @hosts = ( "localhost" ) if (!@hosts);
 
        foreach $host (@hosts) {