summaryrefslogtreecommitdiff
path: root/src/db/sysdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/sysdb.c')
-rw-r--r--src/db/sysdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 25ff6750..9685163b 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -283,6 +283,10 @@ struct ldb_dn *sysdb_domain_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx)
{
return ldb_dn_new_fmt(mem_ctx, sysdb->ldb, SYSDB_DOM_BASE, sysdb->domain->name);
}
+struct ldb_dn *sysdb_base_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx)
+{
+ return ldb_dn_new(mem_ctx, sysdb->ldb, SYSDB_BASE);
+}
struct ldb_context *sysdb_ctx_get_ldb(struct sysdb_ctx *sysdb)
{