Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 594750 Details for
Bug 684577
Logwatch does not recognise ssh Kerberos (GSS) logins.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch
logwatch-7.3-kerberos-logins.patch (text/plain), 1.54 KB, created by
Jan Synacek
on 2012-06-27 12:16:29 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jan Synacek
Created:
2012-06-27 12:16:29 UTC
Size:
1.54 KB
patch
obsolete
>--- logwatch-7.3-dist/scripts/services/sshd 2012-06-27 14:04:58.012231200 +0200 >+++ logwatch-7.3-patch/scripts/services/sshd 2012-06-27 14:11:08.723725631 +0200 >@@ -152,6 +152,7 @@ my %MisMatch = (); > my %KrbAutFail = (); > my %KrbAutErr = (); > my %KrbErr = (); >+my %KrbRealm = (); > my @BadRSA = (); > my @Scanned = (); > my %OtherList = (); >@@ -336,6 +337,8 @@ while (defined(my $ThisLine = <STDIN>)) > $KrbErr{"error removing file " . $Error}++; > } elsif ( my ($Pom,$Error) = ($ThisLine =~ /pam_krb5(\[\d*\]): error resolving user name '[^ ]*' to uid\/gid pai/)) { > $KrbErr{"error resolving user name '$Error' to uid\/gid pai"}++; >+ } elsif (my ($user,$realm) = ($ThisLine =~ /Authorized to ([^ ]+), krb5 principal \1@([^ ]+) \(krb5_kuserok\)/)) { >+ $KrbRealm{$realm}{$user}++; > } else { > # Report any unmatched entries... > unless ($ThisLine =~ /fwd X11 connect/) { >@@ -546,6 +549,20 @@ if (keys %KrbErr) { > } > } > >+if ( ($Detail == 7 && keys %KrbRealm > 1) || ($Detail > 8 && keys %KrbRealm) ){ >+ print "\nSucessfull Kerberos Authentication from ",(scalar keys %KrbRealm)," realm:\n"; >+ foreach my $realm (keys %KrbRealm) { >+ if($Detail > 9){ >+ print " ",$realm,":\n"; >+ foreach my $user(keys %{$KrbRealm{$realm}}){ >+ print " ",$user,": ". $KrbRealm{$realm}{$user} . " Times(s)\n"; >+ } >+ }else{ >+ print " ",$realm,": ". (scalar keys %{$KrbRealm{$realm}}) . " User(s)\n"; >+ } >+ } >+} >+ > > if (keys %DisconnectReceived) { > print "\n\nReceived disconnect:\n";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 684577
: 594750