X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap-cgi.git;a=blobdiff_plain;f=update.cgi;h=676d2d7e47b59777ae41a5341b4287485f64e272;hp=e1f7c969a26dce81ef92f13c2314334ba72db517;hb=b564a1a3a3b8c9363004b2f0f6bc4fe761d4a2d8;hpb=295f9baecdce2ac043eaf41833094b0435d932aa 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);