/[smeserver]/rpms/qpsmtpd/sme10/qpsmtpd-0.96-dont_log_credentials_except_in_debug.patch
ViewVC logotype

Annotation of /rpms/qpsmtpd/sme10/qpsmtpd-0.96-dont_log_credentials_except_in_debug.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sun Apr 17 09:27:24 2016 UTC (8 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-19_el7_sme, qpsmtpd-0_96-12_el7_sme, qpsmtpd-0_96-11_el7_sme, qpsmtpd-0_96-16_el7_sme, qpsmtpd-0_96-13_el7_sme, qpsmtpd-0_96-6_el7_sme, qpsmtpd-0_96-18_el7_sme, qpsmtpd-0_96-23_el7_sme, qpsmtpd-0_96-20_el7_sme, qpsmtpd-0_96-17_el7_sme, qpsmtpd-0_96-8_el7_sme, qpsmtpd-0_96-5_el7_sme, qpsmtpd-0_96-2_el7_sme, qpsmtpd-0_96-21_el7_sme, qpsmtpd-0_96-22_el7_sme, qpsmtpd-0_96-14_el7_sme, qpsmtpd-0_96-15_el7_sme, qpsmtpd-0_96-9_el7_sme, qpsmtpd-0_96-4_el7_sme, qpsmtpd-0_96-3_el7_sme, qpsmtpd-0_96-10_el7_sme, HEAD
* Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-2.sme
- Don't log user credentials except when using the higher log level
  [SME: 9466]

1 vip-ire 1.1 diff -Nur -x '*.orig' -x '*.rej' qpsmtpd-0.96/lib/Qpsmtpd/TcpServer.pm mezzanine_patched_qpsmtpd-0.96/lib/Qpsmtpd/TcpServer.pm
2     --- qpsmtpd-0.96/lib/Qpsmtpd/TcpServer.pm 2016-02-16 23:52:02.000000000 +0100
3     +++ mezzanine_patched_qpsmtpd-0.96/lib/Qpsmtpd/TcpServer.pm 2016-04-15 19:13:13.873874838 +0200
4     @@ -120,7 +120,10 @@
5     while (<STDIN>) {
6     alarm 0;
7     $_ =~ s/\r?\n$//s; # advanced chomp
8     - $self->log(LOGINFO, "dispatching $_");
9     + my $log = $_;
10     + $log =~ s/AUTH PLAIN (.*)/AUTH PLAIN <hidden credentials>/
11     + unless ($self->config('loglevel') || '6') >= 7;
12     + $self->log(LOGINFO, "dispatching $log");
13     $self->connection->notes('original_string', $_);
14     defined $self->dispatch(split / +/, $_, 2)
15     or $self->respond(502, "command unrecognized: '$_'");

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed