summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2012-02-03 22:48:28 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-02-07 00:26:57 +0100
commite7311aec8d691e5427317442387af1bc8fff3742 (patch)
tree3d565438942b685ff5e6bc64e2c15ebc7a799623 /src/providers
parentbd3cf7d6414171fcd605d9f831965be107e411d7 (diff)
downloadsssd-e7311aec8d691e5427317442387af1bc8fff3742.tar.gz
sssd-e7311aec8d691e5427317442387af1bc8fff3742.tar.bz2
sssd-e7311aec8d691e5427317442387af1bc8fff3742.zip
SSH: Responder
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/data_provider_be.c5
-rw-r--r--src/providers/dp_backend.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 7dd4b279..a48ba107 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -1260,6 +1260,9 @@ static int be_client_destructor(void *ctx)
} else if (becli->bectx->autofs_cli == becli) {
DEBUG(SSSDBG_TRACE_FUNC, ("Removed autofs client\n"));
becli->bectx->autofs_cli = NULL;
+ } else if (becli->bectx->ssh_cli == becli) {
+ DEBUG(SSSDBG_TRACE_FUNC, ("Removed SSH client\n"));
+ becli->bectx->ssh_cli = NULL;
} else {
DEBUG(SSSDBG_CRIT_FAILURE, ("Unknown client removed ...\n"));
}
@@ -1312,6 +1315,8 @@ static int client_registration(DBusMessage *message,
becli->bectx->sudo_cli = becli;
} else if (strcasecmp(cli_name, "autofs") == 0) {
becli->bectx->autofs_cli = becli;
+ } else if (strcasecmp(cli_name, "SSH") == 0) {
+ becli->bectx->ssh_cli = becli;
} else {
DEBUG(1, ("Unknown client! [%s]\n", cli_name));
}
diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h
index 2923a8d7..fc79d45b 100644
--- a/src/providers/dp_backend.h
+++ b/src/providers/dp_backend.h
@@ -116,6 +116,7 @@ struct be_ctx {
struct be_client *pam_cli;
struct be_client *sudo_cli;
struct be_client *autofs_cli;
+ struct be_client *ssh_cli;
struct loaded_be loaded_be[BET_MAX];
struct bet_info bet_info[BET_MAX];