Skip to content

Commit

Permalink
Merge branch 'pr-186'
Browse files Browse the repository at this point in the history
  • Loading branch information
klali committed Feb 6, 2019
2 parents 456c2a1 + 5f7d796 commit cc14ad4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pam_yubico.c
Expand Up @@ -1183,8 +1183,6 @@ pam_sm_authenticate (pam_handle_t * pamh,
/* Copy only public ID into otp_id. Destination buffer is zeroed. */
strncpy (otp_id, password + skip_bytes, cfg->token_id_length);

DBG ("OTP: %s ID: %s ", otp, otp_id);

/* user entered their system password followed by generated OTP? */
if (password_len > TOKEN_OTP_LEN + cfg->token_id_length)
{
Expand Down Expand Up @@ -1219,6 +1217,7 @@ pam_sm_authenticate (pam_handle_t * pamh,
switch(valid_token)
{
case AUTH_FOUND:
DBG ("OTP: %s ID: %s ", otp, otp_id);
DBG ("Token is associated to the user. Validating the OTP...");
rc = ykclient_request (ykc, otp);
DBG ("ykclient return value (%d): %s", rc, ykclient_strerror (rc));
Expand Down

0 comments on commit cc14ad4

Please sign in to comment.