summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2015-04-28 20:58:15 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-05-06 11:05:23 +0200
commit00f8fcd36006bdbe6625460dc1f8c2cf71aedf84 (patch)
treeab7c6946156c16bd9743f16f89f3c07df6e05f8f /src/db
parent395219121cc05beb3592e74914a06e2b5b4ebb50 (diff)
downloadsssd-00f8fcd36006bdbe6625460dc1f8c2cf71aedf84.tar.gz
sssd-00f8fcd36006bdbe6625460dc1f8c2cf71aedf84.tar.xz
sssd-00f8fcd36006bdbe6625460dc1f8c2cf71aedf84.zip
IPA: enhance ipa_initgr_get_overrides_send()
This patch makes ipa_initgr_get_overrides_send() public and add support to search overrides by UUID or by SID. Related to https://fedorahosted.org/sssd/ticket/2633 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> (cherry picked from commit 145578006684481434ced78461ab8d1c3570f478) (cherry picked from commit 58a19d50888b1a7da0ee78b49e7d3dcbebc8614d)
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb_views.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/db/sysdb_views.c b/src/db/sysdb_views.c
index 945f16ac1..aadd6018f 100644
--- a/src/db/sysdb_views.c
+++ b/src/db/sysdb_views.c
@@ -739,6 +739,11 @@ errno_t sysdb_apply_default_override(struct sss_domain_info *domain,
NULL };
bool override_attrs_found = false;
+ if (override_attrs == NULL) {
+ /* nothing to do */
+ return EOK;
+ }
+
tmp_ctx = talloc_new(NULL);
if (tmp_ctx == NULL) {
DEBUG(SSSDBG_OP_FAILURE, "talloc_new failed.\n");