dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0064-Add-ssh-pubkey-to-origbyname-request.patch

905b4d
From c6a29b0121b64bbe6b81f2d61c81c480bbf1a858 Mon Sep 17 00:00:00 2001
905b4d
From: Sumit Bose <sbose@redhat.com>
905b4d
Date: Tue, 4 Nov 2014 13:58:39 +0100
905b4d
Subject: [PATCH 64/64] Add ssh pubkey to origbyname request
905b4d
905b4d
Since the IPA clients expects that the extdom plugin delivers the
905b4d
default view data for a given user this patch adds the public SSH key to
905b4d
the list of returned attributes of the getorigbyname request so that it
905b4d
can be send back to the clients.
905b4d
905b4d
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
905b4d
---
905b4d
 src/responder/nss/nsssrv_cmd.c | 2 ++
905b4d
 1 file changed, 2 insertions(+)
905b4d
905b4d
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
905b4d
index ff7b6a334f4c1d9dc854296746b0ff83949acd68..c9c09a082b67741e1d229b419aa7c3ecbf195ddd 100644
905b4d
--- a/src/responder/nss/nsssrv_cmd.c
905b4d
+++ b/src/responder/nss/nsssrv_cmd.c
905b4d
@@ -4159,6 +4159,7 @@ static errno_t nss_cmd_getsidby_search(struct nss_dom_ctx *dctx)
905b4d
                                    SYSDB_DEFAULT_OVERRIDE_NAME,
905b4d
                                    SYSDB_AD_ACCOUNT_EXPIRES,
905b4d
                                    SYSDB_AD_USER_ACCOUNT_CONTROL,
905b4d
+                                   SYSDB_SSH_PUBKEY,
905b4d
                                    SYSDB_DEFAULT_ATTRS, NULL};
905b4d
     const char **attrs;
905b4d
     bool user_found = false;
905b4d
@@ -4632,6 +4633,7 @@ static errno_t fill_orig(struct sss_packet *packet,
905b4d
                                     SYSDB_DEFAULT_OVERRIDE_NAME,
905b4d
                                     SYSDB_AD_ACCOUNT_EXPIRES,
905b4d
                                     SYSDB_AD_USER_ACCOUNT_CONTROL,
905b4d
+                                    SYSDB_SSH_PUBKEY,
905b4d
                                     NULL};
905b4d
     struct sized_string *keys;
905b4d
     struct sized_string *vals;
905b4d
-- 
905b4d
1.9.3
905b4d