summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-07 19:44:29 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:53:01 +0100
commitb7427d63bd328be32991f9d437c4a3d46bcabe03 (patch)
tree1b232e469a99cdeb2f3ac00c9ee5997dd2e6d03f /src/providers
parent5c1135221ff3ea9132b6ebf073f2dcae88b73b3f (diff)
downloadsssd-b7427d63bd328be32991f9d437c4a3d46bcabe03.tar.gz
sssd-b7427d63bd328be32991f9d437c4a3d46bcabe03.tar.bz2
sssd-b7427d63bd328be32991f9d437c4a3d46bcabe03.zip
Add domain arguments to sysdb_add_inetgroup fns.
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_netgroups.c2
-rw-r--r--src/providers/ldap/sdap_async_netgroups.c2
-rw-r--r--src/providers/proxy/proxy_netgroup.c6
3 files changed, 6 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_netgroups.c b/src/providers/ipa/ipa_netgroups.c
index 360c14d2..f9e43b87 100644
--- a/src/providers/ipa/ipa_netgroups.c
+++ b/src/providers/ipa/ipa_netgroups.c
@@ -171,7 +171,7 @@ static errno_t ipa_save_netgroup(TALLOC_CTX *mem_ctx,
DEBUG(6, ("Storing info for netgroup %s\n", name));
- ret = sysdb_add_netgroup(ctx, name, NULL, netgroup_attrs, NULL,
+ ret = sysdb_add_netgroup(ctx, dom, name, NULL, netgroup_attrs, NULL,
dom->netgroup_timeout, 0);
if (ret) goto fail;
diff --git a/src/providers/ldap/sdap_async_netgroups.c b/src/providers/ldap/sdap_async_netgroups.c
index 57a9b943..2b382c1c 100644
--- a/src/providers/ldap/sdap_async_netgroups.c
+++ b/src/providers/ldap/sdap_async_netgroups.c
@@ -138,7 +138,7 @@ static errno_t sdap_save_netgroup(TALLOC_CTX *memctx,
goto fail;
}
- ret = sysdb_add_netgroup(ctx, name, NULL, netgroup_attrs, missing,
+ ret = sysdb_add_netgroup(ctx, dom, name, NULL, netgroup_attrs, missing,
dom->netgroup_timeout, now);
if (ret) goto fail;
diff --git a/src/providers/proxy/proxy_netgroup.c b/src/providers/proxy/proxy_netgroup.c
index afc57ecb..5dc8efe7 100644
--- a/src/providers/proxy/proxy_netgroup.c
+++ b/src/providers/proxy/proxy_netgroup.c
@@ -67,6 +67,7 @@ static errno_t make_netgroup_attr(struct __netgrent netgrent,
}
static errno_t save_netgroup(struct sysdb_ctx *sysdb,
+ struct sss_domain_info *domain,
const char *name,
struct sysdb_attrs *attrs,
bool lowercase,
@@ -90,7 +91,8 @@ static errno_t save_netgroup(struct sysdb_ctx *sysdb,
}
}
- ret = sysdb_add_netgroup(sysdb, name, NULL, attrs, NULL, cache_timeout, 0);
+ ret = sysdb_add_netgroup(sysdb, domain, name, NULL,
+ attrs, NULL, cache_timeout, 0);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE, ("sysdb_add_netgroup failed.\n"));
return ret;
@@ -197,7 +199,7 @@ errno_t get_netgroup(struct proxy_id_ctx *ctx,
goto done;
}
- ret = save_netgroup(sysdb, name, attrs,
+ ret = save_netgroup(sysdb, dom, name, attrs,
!dom->case_sensitive,
dom->netgroup_timeout);
if (ret != EOK) {