X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=update.cgi;h=676d2d7e47b59777ae41a5341b4287485f64e272;hb=6c9d911fbbb4335fb9bc54078a83507c95f1bd52;hp=e1f7c969a26dce81ef92f13c2314334ba72db517;hpb=f1cce6d72917e0d399b178e373c0737ce0dcb59f;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/update.cgi b/update.cgi index e1f7c96..676d2d7 100755 --- a/update.cgi +++ b/update.cgi @@ -36,6 +36,7 @@ sub DieHandler { $SIG{__DIE__} = \&DieHandler; $ldap = Net::LDAP->new($config{ldaphost}); +&Util::UpgradeConnection($ldap) unless $config{usessl} eq 'False'; my $auth = 0; my $mesg; $mesg = $ldap->bind($editdn, password => $password);