From ea98a7af0584d7667b6c07c19a4b22942c94ca5d Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 8 Jan 2015 17:10:42 +0100 Subject: pam: handle 2FA authentication token in the responder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Lukáš Slebodník --- src/responder/pam/pamsrv_cmd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/responder') diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 0eb78c723..dd6574db7 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -143,6 +143,10 @@ static int extract_authtok_v2(struct sss_auth_token *tok, auth_token_length); } break; + case SSS_AUTHTOK_TYPE_2FA: + ret = sss_authtok_set(tok, SSS_AUTHTOK_TYPE_2FA, + auth_token_data, auth_token_length); + break; default: return EINVAL; } -- cgit