You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When switching to RADIUS for authentication, the configuration at /etc/nsswitch.conf gets removed. This results in remote authentication failing and having to use locally configured accounts instead.
Steps to reproduce the issue:
Verify original file size and contents
ls -l /etc/nsswitch.conf*
-rw-r--r-- 1 root root 494 Aug 11 22:15 /etc/nsswitch.conf
-rw-r--r-- 1 root root 494 Aug 11 22:15 /etc/nsswitch.conf.old
grep -i passwd /etc/nsswitch.conf
passwd: files
Configure AAA to use RADIUS
sudo config aaa authentication login radius local
Verify new file size and contents
ls -l /etc/nsswitch.conf*
-rw-r--r-- 1 root root 0 Aug 11 22:16 /etc/nsswitch.conf
-rw-r--r-- 1 root root 0 Aug 11 22:16 /etc/nsswitch.conf.old
grep -i passwd /etc/nsswitch.conf
Test authentication using RADIUS server
Describe the results you received:
Could not login as remote user, and had to authenticate using local admin username/password.
Describe the results you expected:
Successful authentication using a remote user via RADIUS, and /etc/nsswitch.conf updating appropriately.
ls -l /etc/nsswitch.conf*
-rw-r--r-- 1 root root 502 Aug 11 20:49 /etc/nsswitch.conf
-rw-r--r-- 1 root root 502 Aug 4 23:14 /etc/nsswitch.conf.bak
grep -i passwd /etc/nsswitch.conf
passwd: files radius
(paste your output here or download and attach the file here )
Additional information you deem important (e.g. issue happens only occasionally):
The issue is related to an extraneous pair of apostrophes (') within the hostcfgd file. After removing the apostrophes and reloading the device the authentication configuration updated correctly without any issues. Reference link to the problematic line below:
Description
When switching to RADIUS for authentication, the configuration at /etc/nsswitch.conf gets removed. This results in remote authentication failing and having to use locally configured accounts instead.
Steps to reproduce the issue:
Describe the results you received:
Could not login as remote user, and had to authenticate using local admin username/password.
Describe the results you expected:
Successful authentication using a remote user via RADIUS, and /etc/nsswitch.conf updating appropriately.
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The issue is related to an extraneous pair of apostrophes (') within the hostcfgd file. After removing the apostrophes and reloading the device the authentication configuration updated correctly without any issues. Reference link to the problematic line below:
https://github.com/sonic-net/sonic-host-services/blob/master/scripts/hostcfgd#L576
Working configuration:
The text was updated successfully, but these errors were encountered: