From 66318dfe1e7138ff3fc780c4b3f0b29c4b2d8712 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 17 Oct 2012 14:43:07 +0200 Subject: Allow setting the default_shell option per-domain as well https://fedorahosted.org/sssd/ticket/1583 --- src/confdb/confdb.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/confdb/confdb.c') diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index 37a5758c7..13035a416 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -1074,6 +1074,16 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb, } } + tmp = ldb_msg_find_attr_as_string(res->msgs[0], + CONFDB_NSS_DEFAULT_SHELL, NULL); + if (tmp != NULL) { + domain->default_shell = talloc_strdup(domain, tmp); + if (!domain->default_shell) { + ret = ENOMEM; + goto done; + } + } + ret = get_entry_as_bool(res->msgs[0], &domain->case_sensitive, CONFDB_DOMAIN_CASE_SENSITIVE, true); if(ret != EOK) { -- cgit