Skip to content

Hostcfgd doesn't delete radius config under /etc/pam_radius_auth.d/ after radius IP address remove from config. #232

@liuh-80

Description

@liuh-80

Radius will generate config for every raduis server under /etc/pam_radius_auth.d/ for example:
/etc/pam_radius_auth.d/100.127.20.22_1812.conf

However, if we add a new radius server, then delete it, the raduis config file for the server will not delete.

Here is how to reproduce it:

  1. run generic_config_updater/test_aaa.py, this test case will create raduis server during test and remove it after test finish.
  2. check /etc/pam_radius_auth.d/ there will be a radius config file which should not exist: /etc/pam_radius_auth.d/100.127.20.22_1812.conf

Issue code is here, hostcfgd does not delete old radius config file:

if radsrvs_conf:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions