Google Authenticator iRule For Two-Factor Auth With LDAP
Published Mar 17, 2015
Version 1.0Was this article helpful?
This works great once you figure out that the posted variables are passed in the payload URI encoded. Reserved characters are replaced with the hex encoded equivalents and thus passwords that contain these are never going to authenticate.
To fix this change the code below..
foreach param [split [HTTP::payload] &] {
set [lindex [split $param =] 0] [lindex [split $param =] 1]
}
to this
foreach param [split [HTTP::payload] &] {
set [lindex [split $param =] 0] [URI::decode [lindex [split $param =] 1]]
}