dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone
Blob Blame History Raw
From c6a29b0121b64bbe6b81f2d61c81c480bbf1a858 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose@redhat.com>
Date: Tue, 4 Nov 2014 13:58:39 +0100
Subject: [PATCH 64/64] Add ssh pubkey to origbyname request

Since the IPA clients expects that the extdom plugin delivers the
default view data for a given user this patch adds the public SSH key to
the list of returned attributes of the getorigbyname request so that it
can be send back to the clients.

Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
---
 src/responder/nss/nsssrv_cmd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index ff7b6a334f4c1d9dc854296746b0ff83949acd68..c9c09a082b67741e1d229b419aa7c3ecbf195ddd 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -4159,6 +4159,7 @@ static errno_t nss_cmd_getsidby_search(struct nss_dom_ctx *dctx)
                                    SYSDB_DEFAULT_OVERRIDE_NAME,
                                    SYSDB_AD_ACCOUNT_EXPIRES,
                                    SYSDB_AD_USER_ACCOUNT_CONTROL,
+                                   SYSDB_SSH_PUBKEY,
                                    SYSDB_DEFAULT_ATTRS, NULL};
     const char **attrs;
     bool user_found = false;
@@ -4632,6 +4633,7 @@ static errno_t fill_orig(struct sss_packet *packet,
                                     SYSDB_DEFAULT_OVERRIDE_NAME,
                                     SYSDB_AD_ACCOUNT_EXPIRES,
                                     SYSDB_AD_USER_ACCOUNT_CONTROL,
+                                    SYSDB_SSH_PUBKEY,
                                     NULL};
     struct sized_string *keys;
     struct sized_string *vals;
-- 
1.9.3