Skip to content

Commit

Permalink
auth: Log reason for skipping passdb
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and villesavolainen committed May 11, 2017
1 parent 3edea87 commit ca9ca6f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/auth/auth-request.c
Expand Up @@ -673,12 +673,18 @@ auth_request_want_skip_passdb(struct auth_request *request,

username = request->user;

if (!auth_request_mechanism_accepted(mechs, request->mech))
if (!auth_request_mechanism_accepted(mechs, request->mech)) {
auth_request_log_debug(request, AUTH_SUBSYS_MECH,
"skipping passdb: mechanism filtered");
return TRUE;
}

if (passdb->passdb->username_filter != NULL &&
!auth_request_username_accepted(username_filter, username))
!auth_request_username_accepted(username_filter, username)) {
auth_request_log_debug(request, AUTH_SUBSYS_MECH,
"skipping passdb: username filtered");
return TRUE;
}

/* skip_password_check basically specifies if authentication is
finished */
Expand Down

0 comments on commit ca9ca6f

Please sign in to comment.