combine another FR and PAM debug option (missed earlier)
authorfcusack <fcusack>
Tue, 8 Nov 2005 10:56:49 +0000 (10:56 +0000)
committerfcusack <fcusack>
Tue, 8 Nov 2005 10:56:49 +0000 (10:56 +0000)
src/modules/rlm_otp/otp_cardops.c

index b0279d5..b1c1dfc 100644 (file)
@@ -468,16 +468,11 @@ sync_response:
             } /* if (passcode is consecutive */
 
             /* passcode correct, but not consecutive or not soon enough */
-#if defined(FREERADIUS)
-            DEBUG("rlm_otp_token: auth: [%s] rwindow candidate "
-                  "at window position t:%d e:%d", username, t, e);
-#elif defined(PAM)
             if (opt->debug)
               otp_log(OTP_LOG_DEBUG,
-                      "%s: %s: auth: [%s] rwindow candidate "
+                      "%s: %s: [%s] rwindow candidate "
                       "at window position t:%d e:%d", log_prefix, __func__,
                       username, t, e);
-#endif
             rc = OTP_RC_AUTH_ERR;
 
           } else {