summaryrefslogtreecommitdiff
path: root/src/responder
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-10-17 14:43:07 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-10-18 20:19:33 +0200
commit66318dfe1e7138ff3fc780c4b3f0b29c4b2d8712 (patch)
tree0ae1709db5b7c491795cd33d8d4b8ed81366a4f7 /src/responder
parentd9b1ecd81527640e5c15e6617e981a14ead9419f (diff)
downloadsssd-66318dfe1e7138ff3fc780c4b3f0b29c4b2d8712.tar.gz
sssd-66318dfe1e7138ff3fc780c4b3f0b29c4b2d8712.tar.bz2
sssd-66318dfe1e7138ff3fc780c4b3f0b29c4b2d8712.zip
Allow setting the default_shell option per-domain as well
https://fedorahosted.org/sssd/ticket/1583
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/nss/nsssrv_cmd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index 42d32e9d..ec256112 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -173,7 +173,9 @@ static const char *get_shell_override(TALLOC_CTX *mem_ctx,
user_shell = ldb_msg_find_attr_as_string(msg, SYSDB_SHELL, NULL);
if (!user_shell) {
/* Check whether there is a default shell specified */
- if (nctx->default_shell) {
+ if (dom->default_shell) {
+ return talloc_strdup(mem_ctx, dom->default_shell);
+ } else if (nctx->default_shell) {
return talloc_strdup(mem_ctx, nctx->default_shell);
}
return NULL;