jmtrevaskis

Yubiradius 3.5.1 OTP Only - Patch for adding temptoken

Feb 26th, 2014
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. --- ropverify.bak.120328 2014-02-27 10:42:30.000000000 +1030
  2. +++ ropverify.php 2014-02-27 10:42:25.000000000 +1030
  3. @@ -42,6 +42,12 @@
  4. $skipLdapAuth = 1;
  5. }
  6.  
  7. +//added to allow 8 digit temporary tokens
  8. +if ($otpOnlyAuthAllow == 1 && $passwdlen == 8) {
  9. + $otp = $passwd;
  10. + $skipLdapAuth = 1;
  11. +}
  12. +
  13. //james debug
  14. if ($debug) {
  15. $myLog->log(LOG_ERR, $otp);
Add Comment
Please, Sign In to add comment