X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=update.cgi;h=13d847b1a984ac6d79803c7092508db4d1da72f8;hb=e9a3d262aa18e6469b9372741210014f51b0c9a7;hp=ae0b6ce2289e93fc42c99464191b0ba8b687444c;hpb=449fb36b879fe6aca6347db51f1c00d4865144be;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/update.cgi b/update.cgi index ae0b6ce..13d847b 100755 --- a/update.cgi +++ b/update.cgi @@ -13,7 +13,8 @@ use Digest::HMAC_SHA1 qw(hmac_sha1_hex); use Util; use English; use URI::Escape; -use Net::LDAP qw(:all); +use Crypt::PasswdMD5; +use Net::LDAP qw(LDAP_SUCCESS LDAP_PROTOCOL_ERROR); my %config = &Util::ReadConfigFile; @@ -107,6 +108,16 @@ if (!($query->param('doupdate'))) { } else { $data{mailcallout} = ""; } + + $data{maildefaultoptions} ||= 'TRUE'; + + if ($data{maildefaultoptions} eq "TRUE") { + $data{maildefaultoptions} = " checked"; + } else { + $data{maildefaultoptions} = ""; + } + + $data{mailcontentinspectionaction} ||= 'reject'; $data{email} = CGI::escapeHTML(join(", ", @{$entry->{emailforward}})); @@ -119,6 +130,17 @@ if (!($query->param('doupdate'))) { . '>male