We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 969ba5b commit 2aac4c4Copy full SHA for 2aac4c4
files/image_config/hostcfgd/hostcfgd
@@ -127,10 +127,10 @@ class AaaCfg(object):
127
# Add tacplus in nsswitch.conf if TACACS+ enable
128
if 'tacacs+' in auth['login']:
129
if os.path.isfile(NSS_CONF):
130
- os.system("sed -i -e '/tacplus/b' -e '/^passwd/s/compat/& tacplus/' /etc/nsswitch.conf")
+ os.system("sed -i -e '/tacplus/b' -e '/^passwd/s/compat/tacplus &/' /etc/nsswitch.conf")
131
else:
132
133
- os.system("sed -i -e '/^passwd/s/ tacplus//' /etc/nsswitch.conf")
+ os.system("sed -i -e '/^passwd/s/tacplus //' /etc/nsswitch.conf")
134
135
# Set tacacs+ server in nss-tacplus conf
136
template_file = os.path.abspath(NSS_TACPLUS_CONF_TEMPLATE)
0 commit comments