TLS is never needed
authorJamie Cameron <jcameron@webmin.com>
Mon, 1 Dec 2008 22:59:49 +0000 (22:59 +0000)
committerJamie Cameron <jcameron@webmin.com>
Mon, 1 Dec 2008 22:59:49 +0000 (22:59 +0000)
ldap-server/ldap-server-lib.pl

index b7346b3..088c6ae 100644 (file)
@@ -74,22 +74,6 @@ foreach $ssl (@ssls) {
                # Connection failed .. give up completely
                return &text('connect_eldap', "<tt>$server</tt>", $sslport);
                }
-       if ($ssl) {
-               # Switch to TLS mode. It is OK if this fails though
-               local $mesg;
-               eval { $mesg = $ldap->start_tls(); };
-               #if ($@ || !$mesg || $mesg->code) {
-               #       # Failed to switch to SSL mode. If also trying non-SSL,
-               #       # continue around the loop. Otherwise, give up
-               #       if (@ssls > 1) {
-               #               next;
-               #               }
-               #       else {
-               #               return &text('connect_essl', "<tt>$server</tt>",
-               #                            $@ ? $@ : &ldap_error($mesg));
-               #               }
-               #       }
-               }
        }
 $ldap || return "This can't happen!";