diff options
author | Sumit Bose <sbose@redhat.com> | 2013-05-31 10:52:05 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-04 17:24:13 +0200 |
commit | 909a86af4eb99f5d311d7136cab78dca535ae304 (patch) | |
tree | ecf8477033ec37ab8de6b415fc06eac1c6fb1240 /src/responder/ssh | |
parent | 06dad7ed041e90b106475e06d4eb542548d560ed (diff) | |
download | sssd-909a86af4eb99f5d311d7136cab78dca535ae304.tar.gz sssd-909a86af4eb99f5d311d7136cab78dca535ae304.tar.bz2 sssd-909a86af4eb99f5d311d7136cab78dca535ae304.zip |
Lookup domains at startup
To make sure that e.g. the short/NetBIOS domain name is available this
patch make sure that the responders send a get_domains request to their
backends at startup the collect the domain information or read it from
the cache if the backend is offline.
For completeness I added this to all responders even if they do not need
the information at the moment.
Fixes https://fedorahosted.org/sssd/ticket/1951
Diffstat (limited to 'src/responder/ssh')
-rw-r--r-- | src/responder/ssh/sshsrv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/responder/ssh/sshsrv.c b/src/responder/ssh/sshsrv.c index 410e631a..a1d1f6c5 100644 --- a/src/responder/ssh/sshsrv.c +++ b/src/responder/ssh/sshsrv.c @@ -166,6 +166,12 @@ int ssh_process_init(TALLOC_CTX *mem_ctx, goto fail; } + ret = schedule_get_domains_task(rctx, rctx->ev, rctx); + if (ret != EOK) { + DEBUG(SSSDBG_FATAL_FAILURE, ("schedule_get_domains_tasks failed.\n")); + goto fail; + } + DEBUG(SSSDBG_TRACE_FUNC, ("SSH Initialization complete\n")); return EOK; |