mirror of
https://github.com/evgeny-gridasov/openvpn-otp.git
synced 2026-04-25 13:25:56 +03:00
[GH-ISSUE #14] HOTP counter issue #9
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/openvpn-otp#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @avatamaniuc on GitHub (May 10, 2016).
Original GitHub issue: https://github.com/evgeny-gridasov/openvpn-otp/issues/14
Hello,
I'm trying to make this work with Google Authenticator and HOTP type and it looks like counter writed to /var/spool/openvpn/hotp-counters/* is calculated incorrectly - on every authentication attempt the counter is decremented(-1) instead of being incremented(+1). Could you please check this?
Thank you!
@avatamaniuc commented on GitHub (May 10, 2016):
I guess this:
hotp_set_counter(otp_params.key, T-i-1);
should be replaced with:
hotp_set_counter(otp_params.key, T-i+1);
@calve commented on GitHub (May 10, 2016):
You're damn right and I can't believe this have gone unnoticed that long. I pushed a patch on my fork at https://github.com/calve/openvpn-otp, could you confirm it fix your issue ?
@evgeny-gridasov commented on GitHub (May 11, 2016):
Calve could you please verify that everything works and raise a pull request? I'll merge the fix back.
@avatamaniuc commented on GitHub (May 11, 2016):
It looks like now it's ok. Thank you!