summaryrefslogtreecommitdiff
path: root/server/responder/pam
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-05-08 09:53:35 +0200
committerSimo Sorce <ssorce@redhat.com>2009-05-15 19:09:45 -0400
commitab691765dc8d727d01f061d846e7c765e89fb299 (patch)
tree086f4077b66eb3834eb6254db82eaa59fbd96dd0 /server/responder/pam
parentca2fa90f8e7a9399c7c44781f1a032fe10f98cdc (diff)
downloadsssd-ab691765dc8d727d01f061d846e7c765e89fb299.tar.gz
sssd-ab691765dc8d727d01f061d846e7c765e89fb299.tar.bz2
sssd-ab691765dc8d727d01f061d846e7c765e89fb299.zip
added more flexible handling of client protocol
- allow different protocol versions for PAM and NSS - support more than one protocol version in the responder
Diffstat (limited to 'server/responder/pam')
-rw-r--r--server/responder/pam/pamsrv_cmd.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/server/responder/pam/pamsrv_cmd.c b/server/responder/pam/pamsrv_cmd.c
index df0cba45..02b52138 100644
--- a/server/responder/pam/pamsrv_cmd.c
+++ b/server/responder/pam/pamsrv_cmd.c
@@ -656,7 +656,18 @@ static int pam_cmd_chauthtok(struct cli_ctx *cctx) {
return pam_forwarder(cctx, SSS_PAM_CHAUTHTOK);
}
-struct sss_cmd_table *register_sss_cmds(void) {
+struct cli_protocol_version *register_cli_protocol_version(void)
+{
+ static struct cli_protocol_version pam_cli_protocol_version[] = {
+ {1, "2008-09-05", "initial version, \\0 terminated strings"},
+ {0, NULL, NULL}
+ };
+
+ return pam_cli_protocol_version;
+}
+
+struct sss_cmd_table *register_sss_cmds(void)
+{
static struct sss_cmd_table sss_cmds[] = {
{SSS_GET_VERSION, sss_cmd_get_version},
{SSS_PAM_AUTHENTICATE, pam_cmd_authenticate},