summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-05 13:28:21 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-13 09:49:37 -0400
commit517b5d79dd38b20f9e03dd0bd8bdc0f0a6f67198 (patch)
tree56c84d6f73db8519c5aaa4fa2cce7eb20aa15aaa
parent8000e501cb806948cfbfa5797afb7a400b4ea7e2 (diff)
downloadsssd-517b5d79dd38b20f9e03dd0bd8bdc0f0a6f67198.tar.gz
sssd-517b5d79dd38b20f9e03dd0bd8bdc0f0a6f67198.tar.xz
sssd-517b5d79dd38b20f9e03dd0bd8bdc0f0a6f67198.zip
Add sysdb_netgroup_base_dn()
-rw-r--r--src/db/sysdb.c6
-rw-r--r--src/db/sysdb.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 454922693..b6ef8df42 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -58,6 +58,12 @@ struct ldb_dn *sysdb_netgroup_dn(struct sysdb_ctx *ctx, void *memctx,
return ldb_dn_new_fmt(memctx, ctx->ldb, SYSDB_TMPL_NETGROUP, name, domain);
}
+struct ldb_dn *sysdb_netgroup_base_dn(struct sysdb_ctx *ctx, void *memctx,
+ const char *domain)
+{
+ return ldb_dn_new_fmt(memctx, ctx->ldb, SYSDB_TMPL_NETGROUP_BASE, domain);
+}
+
errno_t sysdb_group_dn_name(struct sysdb_ctx *ctx, void *memctx,
const char *_dn, char **_name)
{
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index a2b842fe1..561d37ba4 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -217,6 +217,8 @@ struct ldb_dn *sysdb_group_dn(struct sysdb_ctx *ctx, void *memctx,
const char *domain, const char *name);
struct ldb_dn *sysdb_netgroup_dn(struct sysdb_ctx *ctx, void *memctx,
const char *domain, const char *name);
+struct ldb_dn *sysdb_netgroup_base_dn(struct sysdb_ctx *ctx, void *memctx,
+ const char *domain);
errno_t sysdb_group_dn_name(struct sysdb_ctx *ctx, void *memctx,
const char *dn_str, char **name);
struct ldb_dn *sysdb_domain_dn(struct sysdb_ctx *ctx, void *memctx,