summaryrefslogtreecommitdiffstats
path: root/src/responder/ssh/sshsrv.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-10-17 18:14:53 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-10-22 15:44:53 +0200
commit76c8dafad2a18cf1514635aa766062085c23a5c8 (patch)
tree31ea62be73c4187a9ba6210eb3c0aeb5cde4eaaa /src/responder/ssh/sshsrv.c
parent3f9e2c24dbc14b2eafbe4f5a5ee16fe9af3c3f75 (diff)
downloadsssd-76c8dafad2a18cf1514635aa766062085c23a5c8.tar.gz
sssd-76c8dafad2a18cf1514635aa766062085c23a5c8.tar.xz
sssd-76c8dafad2a18cf1514635aa766062085c23a5c8.zip
SSH: Run the ssh responder as the SSSD user
Reviewed-by: Pavel Reichl <preichl@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/responder/ssh/sshsrv.c')
-rw-r--r--src/responder/ssh/sshsrv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/responder/ssh/sshsrv.c b/src/responder/ssh/sshsrv.c
index b154ee1ba..b1969b49d 100644
--- a/src/responder/ssh/sshsrv.c
+++ b/src/responder/ssh/sshsrv.c
@@ -215,7 +215,8 @@ int main(int argc, const char *argv[])
/* set up things like debug, signals, daemonization, etc... */
debug_log_file = "sssd_ssh";
- ret = server_setup("sssd[ssh]", 0, 0, 0, CONFDB_SSH_CONF_ENTRY, &main_ctx);
+ ret = server_setup("sssd[ssh]", 0, uid, gid,
+ CONFDB_SSH_CONF_ENTRY, &main_ctx);
if (ret != EOK) {
return 2;
}