X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=search.cgi;h=9cb62b3361052500d59ac44dfcdc8bf9e06f33ee;hb=b564a1a3a3b8c9363004b2f0f6bc4fe761d4a2d8;hp=96d8135640340ff09bfea83c0239bbb5535f17e2;hpb=f1cce6d72917e0d399b178e373c0737ce0dcb59f;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/search.cgi b/search.cgi index 96d8135..9cb62b3 100755 --- a/search.cgi +++ b/search.cgi @@ -84,6 +84,7 @@ if (!$dosearch) { # Now, we are ready to connect to the LDAP server. $ldap = Net::LDAP->new($config{ldaphost}) || &Util::HTMLError($!); + &Util::UpgradeConnection($ldap) unless $config{usessl} eq 'False'; my $auth = 0; my $mesg;