Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1481330

Summary: Backport diagnostic logging
Product: Red Hat Enterprise Linux 7 Reporter: John Dennis <jdennis>
Component: mod_auth_mellonAssignee: John Dennis <jdennis>
Status: CLOSED ERRATA QA Contact: Michal Reznik <mreznik>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.5CC: cdolphy, jdennis, jherrman, jstodola, mreznik, nkinder, pasik, spoore
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mod_auth_mellon-0.13.1-2.el7 Doc Type: Enhancement
Doc Text:
This update adds diagnostic logging to the mod_auth_mellon module, which makes it possible to easily collect all SAML configuration data and SAML protocol messages in a single file to help troubleshooting mod_auth_mellon deployment problems.
Story Points: ---
Clone Of:
: 1553854 1578859 (view as bug list) Environment:
Last Closed: 2018-10-30 10:31:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1553854, 1578859    

Description John Dennis 2017-08-14 15:34:21 UTC
A diagnostic logging feature was added to mod_auth_mellon. We need to backport the diagnostic logging feature into the current 0.11.0 mod_auth_mellon RPM.

Comment 2 Chris Dolphy 2017-09-22 15:33:04 UTC
GSSApproved - need additional diagnostic for troubleshooting cases

Comment 10 Michal Reznik 2018-08-02 14:01:57 UTC
Verified:

[root@saml ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.6 Beta (Maipo)
[root@saml ~]# 
[root@saml ~]# rpm -qa | grep mellon
mod_auth_mellon-diagnostics-0.14.0-2.el7.x86_64
mod_auth_mellon-0.14.0-2.el7.x86_64

Set up RH SSO and log in. We have no diagnostics logs.

[root@saml ~]# ls -la /var/log/httpd/mellon_diagnostics
ls: cannot access /var/log/httpd/mellon_diagnostics: No such file or directory

Load diagnostics module:

[root@saml ~]# cat /etc/httpd/conf.modules.d/10-auth_mellon.conf
#LoadModule auth_mellon_module modules/mod_auth_mellon.so
LoadModule auth_mellon_module modules/mod_auth_mellon-diagnostics.so

Enable diagnostics and configure logging:

[root@saml ~]# cat /etc/httpd/conf.d/auth_mellon.conf
MellonCacheSize 100
MellonLockFile "/run/mod_auth_mellon/lock"
MellonDiagnosticsEnable on
MellonDiagnosticsFile logs/mellon_diagnostics

Reload apache:

[root@saml ~]# systemctl reload httpd
[root@saml ~]# 

Log in again and check we have diagnostics logs:

[root@saml ~]# ls -la /var/log/httpd/mellon_diagnostics
-rw-r--r--. 1 root root 137618 Aug  2 09:37 /var/log/httpd/mellon_diagnostics

[root@saml ~]# head /var/log/httpd/mellon_diagnostics
---------------------------------- New Request ---------------------------------
GET - /example_app/private/
log_id: (null)
server: scheme=(null) hostname=saml.ipa.test port=8443
pid: 1895, tid: 140628553689216
unparsed_uri: /example_app/private/
uri: /example_app/private/
path_info: 
filename: /var/www/html/example_app/private/
query args: (null)


Disable diagnostics logs:

[root@saml ~]# cat /etc/httpd/conf.d/auth_mellon.conf
MellonCacheSize 100
MellonLockFile "/run/mod_auth_mellon/lock"
MellonDiagnosticsEnable off
MellonDiagnosticsFile logs/mellon_diagnostics
[root@saml ~]# 

Delete diagnostics log file:

[root@saml ~]# rm -f /var/log/httpd/mellon_diagnostics
[root@saml ~]# 

[root@saml ~]# ls -la /var/log/httpd/mellon_diagnostics
ls: cannot access /var/log/httpd/mellon_diagnostics: No such file or directory

[root@saml ~]# systemctl reload httpd
[root@saml ~]# 

Log in and check we do not have any diagnostics file:

[root@saml ~]# ls -la /var/log/httpd/mellon_diagnostics
ls: cannot access /var/log/httpd/mellon_diagnostics: No such file or directory

Comment 12 errata-xmlrpc 2018-10-30 10:31:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3143