summaryrefslogtreecommitdiffstats
path: root/src/responder
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2015-01-08 17:10:42 +0100
committerSumit Bose <sbose@redhat.com>2015-05-08 09:13:19 +0200
commitea98a7af0584d7667b6c07c19a4b22942c94ca5d (patch)
tree59d256e37c2cae679b4104f30a486ce5db18cb41 /src/responder
parentbc052ea17d858c19f9cb9c9e2bc602e754f68831 (diff)
downloadsssd-ea98a7af0584d7667b6c07c19a4b22942c94ca5d.tar.gz
sssd-ea98a7af0584d7667b6c07c19a4b22942c94ca5d.tar.xz
sssd-ea98a7af0584d7667b6c07c19a4b22942c94ca5d.zip
pam: handle 2FA authentication token in the responder
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/pam/pamsrv_cmd.c4
1 files changed, 4 insertions, 0 deletions
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;
}