Forum Discussion
clesan201305_11
Oct 27, 2014Nimbostratus
Google Authenticator iRule Verification
Hi,
I've been following this article:
https://devcentral.f5.com/articles/two-factor-authentication-with-google-authenticator-and-apm
To implement two-factor authentication with APM. After ...
Sam_Hall
Mar 31, 2017Nimbostratus
I know this thread is old, but I just went through the same process trying to get the otp iRule working as normal without warnings.
The problematic expr statements contain string concatenation used to generate hex values for bitwise operations. It wont work as expected if you simply wrap that in curly brackets, so I just break it up a little. For example this becomes this...
set o [expr 0x$k ^ 0x5C ]
set i [expr 0x$k ^ 0x36 ]
set kh 0x$k
set o [expr {$kh ^ 0x5C} ]
set i [expr {$kh ^ 0x36} ]
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects