summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-06 01:25:00 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:49:20 +0100
commit2ee09a30b020916ee7bf2f61f993ce7844897c1f (patch)
tree4e64630f50f7cb98076814bcdd60ffabddc8c43a /src/db/sysdb.c
parent7c974e792beef952ceb19a01775c6d0ee71a1253 (diff)
downloadsssd-2ee09a30b020916ee7bf2f61f993ce7844897c1f.tar.gz
sssd-2ee09a30b020916ee7bf2f61f993ce7844897c1f.tar.xz
sssd-2ee09a30b020916ee7bf2f61f993ce7844897c1f.zip
Make sysdb_netgroup_base_dn() require a domain.
Diffstat (limited to 'src/db/sysdb.c')
-rw-r--r--src/db/sysdb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index edfcef026..c79a63342 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -209,10 +209,12 @@ struct ldb_dn *sysdb_netgroup_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
return dn;
}
-struct ldb_dn *sysdb_netgroup_base_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx)
+struct ldb_dn *sysdb_netgroup_base_dn(struct sysdb_ctx *sysdb,
+ TALLOC_CTX *mem_ctx,
+ struct sss_domain_info *dom)
{
- return ldb_dn_new_fmt(mem_ctx, sysdb->ldb, SYSDB_TMPL_NETGROUP_BASE,
- sysdb->domain->name);
+ return ldb_dn_new_fmt(mem_ctx, sysdb->ldb,
+ SYSDB_TMPL_NETGROUP_BASE, dom->name);
}
errno_t sysdb_get_rdn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,