From 355ebce27aeb941f949f26f9c70d08150f37a7db Mon Sep 17 00:00:00 2001 From: Alexander Wilke Date: Sun, 16 Jun 2013 18:54:33 +0300 Subject: freeradius2: m-OTP allow negative offset --- config/freeradius2/freeradius.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/freeradius2') diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc index b2df3d0b..bf48dd06 100644 --- a/config/freeradius2/freeradius.inc +++ b/config/freeradius2/freeradius.inc @@ -4003,7 +4003,7 @@ USERNAME=`echo -n "\$1" | sed 's/[^0-9a-zA-Z._-]/X/g' ` PASSWD=`echo -n "\$2" | sed 's/[^0-9a-f]/0/g' ` SECRET=`echo -n "\$3" | sed 's/[^0-9a-f]/0/g' ` PIN=`echo -n "\$4" | sed 's/[^0-9]/0/g' ` -OFFSET=`echo -n "\$5" | sed 's/[^0-9]/0/g' ` +OFFSET=`echo -n "\$5" | sed 's/[^0-9-]/0/g' ` EPOCHTIME=`date +%s` ; EPOCHTIME=`chop \$EPOCHTIME` # delete old logins -- cgit v1.2.3 From 1548fc4c34422829948e1be45f4c89242cb367b7 Mon Sep 17 00:00:00 2001 From: Alexander Wilke Date: Sun, 16 Jun 2013 18:56:03 +0300 Subject: freeradius2: m-OTP allow negative offset --- config/freeradius2/freeradius.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/freeradius2') diff --git a/config/freeradius2/freeradius.xml b/config/freeradius2/freeradius.xml index c9381c81..8e3105ef 100644 --- a/config/freeradius2/freeradius.xml +++ b/config/freeradius2/freeradius.xml @@ -275,7 +275,7 @@ 1. Write down the first 9 digits of the Epoch-Time on the client.
2. Check with date +%s the Epoch-Time on your FreeRADIUS server and write down the first 9 digits.
- 3. Subtract both values, multiply the result with 10 and enter the value in this field. (Default: 0)]]> + 3. Subtract both values, multiply the result with 10 and enter the value in this field. Example: 30 or -180 (Default: 0)]]> input 0 -- cgit v1.2.3