Bug 906912

Summary: ppp radius plugin breaks on new keywords in radius config file
Product: Red Hat Enterprise Linux 6 Reporter: Charlie Brady <charlieb-redhat-bugzilla>
Component: pppAssignee: Michal Sekletar <msekleta>
Status: CLOSED ERRATA QA Contact: Jaroslav Aster <jaster>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: jaster, msekleta
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Parser for radius client config file is too strict. Consequence: Error is returned when radius client config file contains options which ppp's radius plugin can't recognize. Fix: Configuration parser for radius client configuration now skips over directives which are unrecognized. Result: When configuration for authentication method based on radius is now populated from configuration file only known directives are considered while unknown are skipped without reporting errors in configuration.
Story Points: ---
Clone Of:
: 906913 (view as bug list) Environment:
Last Closed: 2015-03-16 08:13:47 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:
Attachments:
Description Flags
Patch to skip unrecognised directives when parsing radius file none

Description Charlie Brady 2013-02-01 21:52:51 UTC
Created attachment 691752 [details]
Patch to skip unrecognised directives when parsing radius file

If ppp is configured to use the radius plugin for authentication:

...
plugin radius.so
radius-config-file /etc/radiusclient-ng/radiusclient.conf
...

and radiusclient.conf contains 'bindaddr *' (as it does in radiusclient-ng-0.5.6-8.fc18.i686.rpm), then: authentication fails with these log messages:

> Nov 23 10:46:11 vucc2 pppd[1171]: /etc/radiusclient-ng/radiusclient.conf: line 75: unrecognized
> keyword: bindaddr
> Nov 23 10:46:11 vucc2 pppd[1171]: RADIUS: Can't read config file
> /etc/radiusclient-ng/radiusclient.conf 

The problem is that the config file parser in the radius plugin of pppd is too strict. Instead of ignoring configuration directives that it does not recognise, and does not care about, it stops parsing the file, and returns an error, and remains itself unconfigured.

Patch attached.

Comment 1 Charlie Brady 2013-02-01 21:54:41 UTC
Patch was long ago submitted to linux-ppp mailing list, but that list appears to be unmonitored by the ppp maintainers.

http://marc.info/?l=linux-ppp&m=134636974704703

Comment 3 Michal Sekletar 2013-07-31 14:29:21 UTC
This is already fixed in fedora, fix maybe included in some future maintenance release of RHEL6.

Comment 4 RHEL Program Management 2013-10-13 23:59:57 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 10 errata-xmlrpc 2015-03-16 08:13:47 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://rhn.redhat.com/errata/RHBA-2015-0685.html