diff options
-rw-r--r-- | lib/Vyatta/Login/RadiusServer.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Vyatta/Login/RadiusServer.pm b/lib/Vyatta/Login/RadiusServer.pm index 9eec4aa3..5a71b1f8 100644 --- a/lib/Vyatta/Login/RadiusServer.pm +++ b/lib/Vyatta/Login/RadiusServer.pm @@ -29,11 +29,11 @@ my $PAM_RAD_AUTH = "/usr/share/pam-configs/radius"; my $PAM_RAD_SYSCONF = "/opt/vyatta/etc/pam_radius.cfg"; sub remove_pam_radius { - qx'sed -i -e \'/^passwd:.*mapuid[ \t]/s/mapuid[ \t]//\' \ + system('sed -i -e \'/^passwd:.*mapuid[ \t]/s/mapuid[ \t]//\' \ -e \'/^passwd:.*[ \t]mapname/s/[ \t]mapname//\' \ -e \'/^group:.*[ \t]mapname/s/[ \t]mapname//\' \ -e \'s/[ \t]*$//\' \ - /etc/nsswitch.conf'; + /etc/nsswitch.conf'); system("DEBIAN_FRONTEND=noninteractive " . "pam-auth-update --package --remove radius") == 0 @@ -51,13 +51,13 @@ sub add_pam_radius { "pam-auth-update --package radius") == 0 or die "pam-auth-update add failed"; - qx'sed -i -e \'/\smapname/b\' \ + system('sed -i -e \'/\smapname/b\' \ -e \'/^passwd:/s/\s\s*/&mapuid /\' \ -e \'/^passwd:.*#/s/#.*/mapname &/\' \ -e \'/^passwd:[^#]*$/s/$/ mapname &/\' \ -e \'/^group:.*#/s/#.*/ mapname &/\' \ -e \'/^group:[^#]*$/s/: */&mapname /\' \ - /etc/nsswitch.conf' == 0 + /etc/nsswitch.conf') == 0 or die "NSS configuration failed"; } |