From 967eb8b00e36f973ea20bae9f7b884329b0cba23 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Nov 21 2011 07:58:42 +0000 Subject: Fixed freeradius Script --- diff --git a/tests/p_freeradius/radiusd_test.sh b/tests/p_freeradius/radiusd_test.sh index f524317..fd1487b 100755 --- a/tests/p_freeradius/radiusd_test.sh +++ b/tests/p_freeradius/radiusd_test.sh @@ -19,18 +19,11 @@ echo ' Service-Type = Framed-User,' >> /etc/raddb/users # Restart Service service radiusd restart -#Run test, treat C6 and C5 differently +#Run test -if (t_GetPkgRel basesystem | grep -q el6) - then - t_Log "Running C6-Test" - radtest -d /etc/raddb -x steve centos 127.0.0.1:1812 1 testing123 |grep -qc 'Access-Accept' + t_Log "Running Test" + echo "User-Name=steve,Password=centos " | radclient -x localhost:1812 auth testing123 |grep -qc 'Access-Accept' ret_val=$? -else - t_Log "Running C5-Test" - radtest steve centos 127.0.0.1:1812 1 testing123 |grep -qc 'Access-Accept' - ret_val=$? -fi # Restore settings /bin/cp /etc/raddb/users.orig /etc/raddb/users