Skip to content

Commit

Permalink
don't complain about PAP if Auth-Type is already set
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Sep 1, 2018
1 parent 7243107 commit 4a05f94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/rlm_pap/rlm_pap.c
Expand Up @@ -492,6 +492,11 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authorize(void *instance, REQUEST *reque
return RLM_MODULE_NOOP;
}

if (auth_type) {
DEBUG("Not doing PAP as Auth-Type is already set.");
return RLM_MODULE_NOOP;
}

RWDEBUG("No \"known good\" password found for the user. Not setting Auth-Type");
RWDEBUG("Authentication will fail unless a \"known good\" password is available");
return RLM_MODULE_NOOP;
Expand Down

0 comments on commit 4a05f94

Please sign in to comment.