Author: blues                        Date: Fri Mar 11 09:08:55 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- Tally overflowed message

---- Files affected:
SOURCES:
   logwatch-secure.patch (1.27 -> 1.28) 

---- Diffs:

================================================================
Index: SOURCES/logwatch-secure.patch
diff -u SOURCES/logwatch-secure.patch:1.27 SOURCES/logwatch-secure.patch:1.28
--- SOURCES/logwatch-secure.patch:1.27  Mon Feb 28 11:07:23 2005
+++ SOURCES/logwatch-secure.patch       Fri Mar 11 10:08:50 2005
@@ -4,7 +4,7 @@
 retrieving revision 1.49
 diff -u -r1.49 secure
 --- scripts/services/secure    24 Feb 2005 17:08:05 -0000      1.49
-+++ scripts/services/secure    28 Feb 2005 10:06:55 -0000
++++ scripts/services/secure    11 Mar 2005 09:08:07 -0000
 @@ -49,6 +49,8 @@
  $ConsoleLock = 0;
  $spop3d_opened=0;
@@ -46,12 +46,14 @@
     } elsif ( $ThisLine =~ /^login: ROOT LOGIN ON tty[0-9]+/) {
        $RootLoginTTY++
     } elsif ( (undef,$User) = ($ThisLine =~ /^login: LOGIN ON 
(tty|pts\/)[0-9]+ BY ([^ ]+)/ )) {
-@@ -212,6 +218,14 @@
+@@ -212,6 +218,16 @@
     } elsif ( ($PID) = ($ThisLine =~ /^checkpassword-pam\[(\d+)\]: Setting PAM 
credentials succeeded/)) {
     } elsif ( ($PID) = ($ThisLine =~ /^checkpassword-pam\[(\d+)\]: Terminating 
PAM library/)) {
     } elsif ( ($PID) = ($ThisLine =~ /^checkpassword-pam\[(\d+)\]: Exiting 
with status 0/)) {
 +   } elsif ( ($User) = ($ThisLine =~ /^pam_tally\[\d+\]: pam_tally: 
pam_get_uid; no such user ([^ ]+)/)) {
 +      $UnknownUser{$User}++;
++   } elsif ( ($User) = ($ThisLine =~ /^pam_tally\[\d+\]: Tally overflowed for 
user ([^ ]+)$/)) {
++      $TallyOverflow{$User}++;
 +   } elsif ( ($User) = ($ThisLine =~ /^pam_pwdfile\[\d+\]: user not found in 
password database/) ) {
 +      $pwd_file_unknown++;
 +   } elsif ( ($User) = ($ThisLine =~ /^pam_pwdfile\[\d+\]: wrong password for 
user ([^ ]+)/)) {
@@ -61,7 +63,7 @@
     } else {
        # Unmatched entries...
        push @OtherList, "$ThisLine\n";
-@@ -282,6 +296,20 @@
+@@ -282,6 +298,20 @@
     }
  }
  
@@ -82,7 +84,21 @@
  if (keys %{$Connections}) {
     print "\nConnections:\n";
     foreach $ThisOne (keys %{$Connections}) {
-@@ -445,4 +473,3 @@
+@@ -437,6 +467,13 @@
+    }
+ }
+ 
++if (keys %TallyOverflow) {
++   print "\nTally overflowed for user:\n";
++   foreach $User (sort {$a cmp $b} keys %TallyOverflow) {
++      print "   $User : $TallyOverflow{$User} Time(s)\n";
++   }
++}
++
+ if ($#OtherList >= 0) {
+    print "\n**Unmatched Entries**\n";
+    print @OtherList;
+@@ -445,4 +482,3 @@
  exit(0);
  
  # vi: shiftwidth=3 tabstop=3 syntax=perl et
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/logwatch-secure.patch?r1=1.27&r2=1.28&f=u


_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to