forked from sig_core/toolkit
fix freeradius test
This commit is contained in:
parent
879b03ac52
commit
08c1035c5f
@ -9,9 +9,11 @@ rocky Cleartext-Password := "rocky"
|
||||
EOF
|
||||
|
||||
r_log "freeradius" "Testing..."
|
||||
systemctl start radiusd.service
|
||||
sleep 1
|
||||
echo "User-Name=rocky,User-Password=rocky " | radclient -x localhost:1812 auth testing123 | grep -q 'Access-Accept'
|
||||
r_checkExitStatus $?
|
||||
|
||||
cp /etc/raddb/users.backup /etc/raddb/users
|
||||
rm -rf /etc/raddb/users.backup
|
||||
service radiusd stop
|
||||
systemctl stop radiusd.service
|
||||
|
Loading…
Reference in New Issue
Block a user