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 1730009

Summary: lasso includes "Destination" attribute in SAML AuthnRequest populated with SP AssertionConsumerServiceURL when ECP workflow is used which leads to IdP-side errors
Product: Red Hat Enterprise Linux 7 Reporter: John Dennis <jdennis>
Component: lassoAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED ERRATA QA Contact: Scott Poore <spoore>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.7CC: spoore
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lasso-2.5.1-5.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1730018 (view as bug list) Environment:
Last Closed: 2020-03-31 19:10:19 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: 1730018    

Description John Dennis 2019-07-15 14:59:37 UTC
Lasso adds a Destination attribute to the AuthnRequest using the ECP profile. This is not compatible with the ECP profile because the SP does not know the IdP when generating an AuthnRequest hence it cannot know the Destination.

See upstream bug for more discussion and upstream commit fixing the issue.
https://dev.entrouvert.org/issues/34409

Comment 6 Scott Poore 2019-10-18 18:49:08 UTC
Verified.

Version ::

lasso-2.5.1-5.el7.x86_64

Results ::

First setup mod_auth_mellon using keycloak with keycloak-httpd-client-install.  Then reproducing with older version:

Setup mod_auth_mellon diagnotics to use logs to verify.

lasso-2.5.1-3.el7.x86_64

[root@sp1 conf.d]# curl -L -H "Accept: application/vnd.paos+xml" -H 'PAOS: ver="urn:liberty:paos:2003-08";"urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp"' https://sp1.keycloak.test:60443/private/index.html
...

[root@sp1 conf.d]# grep -i destination /var/log/httpd/mellon_diagnostics 
  <samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_4543FD75DEB19BC6EDBFDF3BB2E16D9C" Version="2.0" IssueInstant="2019-10-18T18:39:52Z" Destination="https://sp1.keycloak.test:60443/mellon/paosResponse" Consent="urn:oasis:names:tc:SAML:2.0:consent:current-implicit" SignType="0" SignMethod="0" ForceAuthn="false" IsPassive="false" AssertionConsumerServiceURL="https://sp1.keycloak.test:60443/mellon/paosResponse">

Now upgrade and verify

[root@sp1 conf.d]# rpm -q lasso
lasso-2.5.1-5.el7.x86_64

[root@sp1 conf.d]# > /var/log/httpd/mellon_diagnostics 

[root@sp1 conf.d]# systemctl restart httpd

[root@sp1 conf.d]# curl -L -H "Accept: application/vnd.paos+xml" -H 'PAOS: ver="urn:liberty:paos:2003-08";"urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp"' https://sp1.keycloak.test:60443/private/index.html
...

[root@sp1 conf.d]# grep -i destination /var/log/httpd/mellon_diagnostics
[root@sp1 conf.d]# 

Not finding Destination in the log shows the fix.

Comment 9 errata-xmlrpc 2020-03-31 19:10:19 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-2020:1002