(0) Received Access-Request Id 52 from 127.0.0.1:10007 to 127.0.0.1:1812 length 138 (0) Service-Type = Login-User (0) User-Name = "otpuser1" (0) User-Password = "23ace5" (0) NAS-IP-Address = 192.168.122.179 (0) NAS-Identifier = "openVPN" (0) Calling-Station-Id = "192.168.122.179:1195" (0) Called-Station-Id = "0c:c5:49:1e:f0:01:pf4.spb-lab.int" (0) NAS-Port-Type = Virtual (0) NAS-Port = 1195 (0) # Executing section authorize from file /usr/local/etc/raddb/sites-enabled/default (0) authorize { (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "otpuser1", skipping NULL due to config. (0) [suffix] = noop (0) ntdomain: Checking for prefix before "\" (0) ntdomain: No '\' in User-Name = "otpuser1", skipping NULL due to config. (0) [ntdomain] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) files: users: Matched entry otpuser1 at line 9 (0) [files] = ok (0) if ((notfound || noop) && ("%{%{Control:Auth-Type}:-No-Accept}" != "Accept")) { (0) if ((notfound || noop) && ("%{%{Control:Auth-Type}:-No-Accept}" != "Accept")) -> FALSE rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (0) [daily] = noop rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (0) [weekly] = noop rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (0) [monthly] = noop rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (0) [forever] = noop (0) if (&request:Calling-Station-Id == &control:Calling-Station-Id) { (0) ERROR: Failed retrieving values required to evaluate condition (0) [expiration] = noop (0) [logintime] = noop Not doing PAP as Auth-Type is already set. (0) [pap] = noop (0) } # authorize = ok (0) Found Auth-Type = MOTP (0) # Executing group from file /usr/local/etc/raddb/sites-enabled/default (0) Auth-Type MOTP { (0) motp: Executing: /usr/local/bin/bash /usr/local/etc/raddb/scripts/otpverify.sh %{request:User-Name} %{request:User-Password} %{reply:MOTP-Init-Secret} %{reply:MOTP-PIN} %{reply:MOTP-Offset}: (0) motp: EXPAND %{request:User-Name} (0) motp: --> otpuser1 (0) motp: EXPAND %{request:User-Password} (0) motp: --> 23ace5 (0) motp: EXPAND %{reply:MOTP-Init-Secret} (0) motp: --> 8abe2f27456f801a (0) motp: EXPAND %{reply:MOTP-PIN} (0) motp: --> 1234 (0) motp: EXPAND %{reply:MOTP-Offset} (0) motp: --> 0 (0) motp: Program returned code (0) and output 'ACCEPT' (0) motp: Program executed successfully (0) [motp] = ok (0) } # Auth-Type MOTP = ok (0) # Executing section post-auth from file /usr/local/etc/raddb/sites-enabled/default (0) post-auth { (0) update { (0) No attributes updated for RHS &session-state: (0) } # update = noop (0) [exec] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # post-auth = noop (0) Login OK: [otpuser1] (from client localhost port 1195 cli 192.168.122.179:1195) (0) Sent Access-Accept Id 52 from 127.0.0.1:1812 to 127.0.0.1:10007 length 0 (0) Finished request Waking up in 4.9 seconds. (0) Cleaning up request packet ID 52 with timestamp +19 Ready to process requests (1) Received Access-Request Id 27 from 127.0.0.1:7638 to 127.0.0.1:1812 length 138 (1) Service-Type = Login-User (1) User-Name = "otpuser1" (1) User-Password = "23ace5" (1) NAS-IP-Address = 192.168.122.179 (1) NAS-Identifier = "openVPN" (1) Calling-Station-Id = "192.168.122.179:1195" (1) Called-Station-Id = "0c:c5:49:1e:f0:01:pf4.spb-lab.int" (1) NAS-Port-Type = Virtual (1) NAS-Port = 1195 (1) # Executing section authorize from file /usr/local/etc/raddb/sites-enabled/default (1) authorize { (1) [preprocess] = ok (1) [chap] = noop (1) [mschap] = noop (1) [digest] = noop (1) suffix: Checking for suffix after "@" (1) suffix: No '@' in User-Name = "otpuser1", skipping NULL due to config. (1) [suffix] = noop (1) ntdomain: Checking for prefix before "\" (1) ntdomain: No '\' in User-Name = "otpuser1", skipping NULL due to config. (1) [ntdomain] = noop (1) eap: No EAP-Message, not doing EAP (1) [eap] = noop (1) files: users: Matched entry otpuser1 at line 9 (1) [files] = ok (1) if ((notfound || noop) && ("%{%{Control:Auth-Type}:-No-Accept}" != "Accept")) { (1) if ((notfound || noop) && ("%{%{Control:Auth-Type}:-No-Accept}" != "Accept")) -> FALSE rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (1) [daily] = noop rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (1) [weekly] = noop rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (1) [monthly] = noop rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (1) [forever] = noop (1) if (&request:Calling-Station-Id == &control:Calling-Station-Id) { (1) ERROR: Failed retrieving values required to evaluate condition (1) [expiration] = noop (1) [logintime] = noop Not doing PAP as Auth-Type is already set. (1) [pap] = noop (1) } # authorize = ok (1) Found Auth-Type = MOTP (1) # Executing group from file /usr/local/etc/raddb/sites-enabled/default (1) Auth-Type MOTP { (1) motp: Executing: /usr/local/bin/bash /usr/local/etc/raddb/scripts/otpverify.sh %{request:User-Name} %{request:User-Password} %{reply:MOTP-Init-Secret} %{reply:MOTP-PIN} %{reply:MOTP-Offset}: (1) motp: EXPAND %{request:User-Name} (1) motp: --> otpuser1 (1) motp: EXPAND %{request:User-Password} (1) motp: --> 23ace5 (1) motp: EXPAND %{reply:MOTP-Init-Secret} (1) motp: --> 8abe2f27456f801a (1) motp: EXPAND %{reply:MOTP-PIN} (1) motp: --> 1234 (1) motp: EXPAND %{reply:MOTP-Offset} (1) motp: --> 0 (1) motp: ERROR: Program returned code (11) and output 'FAIL' (1) motp: ERROR: Program returned invalid code (greater than max rcode) (11 > 9): FAIL (1) [motp] = fail (1) } # Auth-Type MOTP = fail (1) Failed to authenticate the user (1) Using Post-Auth-Type Reject (1) # Executing group from file /usr/local/etc/raddb/sites-enabled/default (1) Post-Auth-Type REJECT { (1) attr_filter.access_reject: EXPAND %{User-Name} (1) attr_filter.access_reject: --> otpuser1 (1) attr_filter.access_reject: Matched entry DEFAULT at line 11 (1) [attr_filter.access_reject] = updated (1) [eap] = noop (1) policy remove_reply_message_if_eap { (1) if (&reply:EAP-Message && &reply:Reply-Message) { (1) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (1) else { (1) [noop] = noop (1) } # else = noop (1) } # policy remove_reply_message_if_eap = noop (1) } # Post-Auth-Type REJECT = updated (1) Login incorrect (Failed retrieving values required to evaluate condition): [otpuser1] (from client localhost port 1195 cli 192.168.122.179:1195) (1) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (1) Sending delayed response (1) Sent Access-Reject Id 27 from 127.0.0.1:1812 to 127.0.0.1:7638 length 20 Waking up in 3.9 seconds. (1) Cleaning up request packet ID 27 with timestamp +3345 Ready to process requests (2) Received Access-Request Id 215 from 127.0.0.1:54875 to 127.0.0.1:1812 length 138 (2) Service-Type = Login-User (2) User-Name = "otpuser1" (2) User-Password = "23ace5" (2) NAS-IP-Address = 192.168.122.179 (2) NAS-Identifier = "openVPN" (2) Calling-Station-Id = "192.168.122.179:1195" (2) Called-Station-Id = "0c:c5:49:1e:f0:01:pf4.spb-lab.int" (2) NAS-Port-Type = Virtual (2) NAS-Port = 1195 (2) # Executing section authorize from file /usr/local/etc/raddb/sites-enabled/default (2) authorize { (2) [preprocess] = ok (2) [chap] = noop (2) [mschap] = noop (2) [digest] = noop (2) suffix: Checking for suffix after "@" (2) suffix: No '@' in User-Name = "otpuser1", skipping NULL due to config. (2) [suffix] = noop (2) ntdomain: Checking for prefix before "\" (2) ntdomain: No '\' in User-Name = "otpuser1", skipping NULL due to config. (2) [ntdomain] = noop (2) eap: No EAP-Message, not doing EAP (2) [eap] = noop (2) files: users: Matched entry otpuser1 at line 9 (2) [files] = ok (2) if ((notfound || noop) && ("%{%{Control:Auth-Type}:-No-Accept}" != "Accept")) { (2) if ((notfound || noop) && ("%{%{Control:Auth-Type}:-No-Accept}" != "Accept")) -> FALSE rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (2) [daily] = noop rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (2) [weekly] = noop rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (2) [monthly] = noop rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair (2) [forever] = noop (2) if (&request:Calling-Station-Id == &control:Calling-Station-Id) { (2) ERROR: Failed retrieving values required to evaluate condition (2) [expiration] = noop (2) [logintime] = noop Not doing PAP as Auth-Type is already set. (2) [pap] = noop (2) } # authorize = ok (2) Found Auth-Type = MOTP (2) # Executing group from file /usr/local/etc/raddb/sites-enabled/default (2) Auth-Type MOTP { (2) motp: Executing: /usr/local/bin/bash /usr/local/etc/raddb/scripts/otpverify.sh %{request:User-Name} %{request:User-Password} %{reply:MOTP-Init-Secret} %{reply:MOTP-PIN} %{reply:MOTP-Offset}: (2) motp: EXPAND %{request:User-Name} (2) motp: --> otpuser1 (2) motp: EXPAND %{request:User-Password} (2) motp: --> 23ace5 (2) motp: EXPAND %{reply:MOTP-Init-Secret} (2) motp: --> 8abe2f27456f801a (2) motp: EXPAND %{reply:MOTP-PIN} (2) motp: --> 1234 (2) motp: EXPAND %{reply:MOTP-Offset} (2) motp: --> 0 (2) motp: ERROR: Program returned code (11) and output 'FAIL' (2) motp: ERROR: Program returned invalid code (greater than max rcode) (11 > 9): FAIL (2) [motp] = fail (2) } # Auth-Type MOTP = fail (2) Failed to authenticate the user (2) Using Post-Auth-Type Reject (2) # Executing group from file /usr/local/etc/raddb/sites-enabled/default (2) Post-Auth-Type REJECT { (2) attr_filter.access_reject: EXPAND %{User-Name} (2) attr_filter.access_reject: --> otpuser1 (2) attr_filter.access_reject: Matched entry DEFAULT at line 11 (2) [attr_filter.access_reject] = updated (2) [eap] = noop (2) policy remove_reply_message_if_eap { (2) if (&reply:EAP-Message && &reply:Reply-Message) { (2) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (2) else { (2) [noop] = noop (2) } # else = noop (2) } # policy remove_reply_message_if_eap = noop (2) } # Post-Auth-Type REJECT = updated (2) Login incorrect (Failed retrieving values required to evaluate condition): [otpuser1] (from client localhost port 1195 cli 192.168.122.179:1195) (2) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (2) Sending delayed response (2) Sent Access-Reject Id 215 from 127.0.0.1:1812 to 127.0.0.1:54875 length 20