Bug 1421116
Summary: | radiusd doesn't find configuration file if the binary file of radiusd is renamed | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jaroslav Aster <jaster> |
Component: | freeradius | Assignee: | Nikolai Kondrashov <nikolai.kondrashov> |
Status: | CLOSED NOTABUG | QA Contact: | Jaroslav Aster <jaster> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.4 | CC: | pkis |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-16 14:21:30 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: |
Description
Jaroslav Aster
2017-02-10 11:55:10 UTC
Hmm, why do we need to have radiusd renamed? I suspect that looking up for <program_name>.conf file is a part of core functionality. Perhaps the same library is used to load configuration for different executables and as a "clever" hack to lookup corresponding config file uses the program name. Hi Nikolai, I have test which renames radiusd and creates new radiusd file (shell script), which prepares some python environment for renamed radiusd and then calls renamed radiusd. It works in 3.0.4, but it does not work in 3.0.12, because renamed radiusd tries to find configuration file which does not exist. If you consider it as not-a-bug, I can fix my test. It's up to you. Although I see e.g. Debian removing that functionality in their patches, I think we can live with this. Could you perhaps try changing your test to supply the '-n' option to radiusd? From the man page: -n name Read freeradius/name.conf instead of freeradius/radiusd.conf. You can also move it into a subdirectory without changing the file name. Tell me if that's unsuitable and we'll try something else. Ok, workaround works for me, but, sincerely, I don't like it. I think, program would not change configuration file base on its name. If upstream wants it, you can close this bug :-). Yeah, I don't like it much either, but if it's not a problem for you, nor for users, we should be OK. Please feel free to re-open if it makes your life difficult. |