Bug 1592741

Summary: Freeradius paircompare with attribute references and expansions
Product: Red Hat Enterprise Linux 7 Reporter: Ivan Stojmirov <istojmir>
Component: freeradiusAssignee: Alex Scheel <ascheel>
Status: CLOSED ERRATA QA Contact: Filip Dvorak <fdvorak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: ascheel, mharmsen
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: freeradius-3.0.13-15.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 20:20:36 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: 1788833    

Description Ivan Stojmirov 2018-06-19 08:23:08 UTC
Description of problem:

There is a bug with comparing attribiute references and expansions, which causes the comparison to always return false. 

This has been already reported and fixed upstream over a year ago:  
https://github.com/FreeRADIUS/freeradius-server/issues/1947
https://github.com/FreeRADIUS/freeradius-server/commit/e56048c98bfab25ae9453a52bbe6bcc02f20f515

Version-Release number of selected component (if applicable):
Tested with freeradius-3.0.13-9.el7_5.x86_64, other versions are likely affected as well

How reproducible:

Here is an example condition which works fine with freeradius shipped with RHEL6, but always fails on RHEL7:

if ( LDAP-Group == "%{sql: SELECT authorized_group FROM nas WHERE
nasname = '%{Packet-Src-IP-Address}' LIMIT 1}" )

Comment 12 errata-xmlrpc 2020-09-29 20:20:36 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 (Moderate: freeradius security and bug fix update), 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/RHSA-2020:3984