summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.c5
-rw-r--r--src/db/sysdb.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 99c116b8e..d07f27df6 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -287,6 +287,11 @@ struct ldb_context *sysdb_ctx_get_ldb(struct sysdb_ctx *sysdb)
return sysdb->ldb;
}
+struct sss_domain_info *sysdb_ctx_get_domain(struct sysdb_ctx *sysdb)
+{
+ return sysdb->domain;
+}
+
struct sysdb_attrs *sysdb_new_attrs(TALLOC_CTX *memctx)
{
return talloc_zero(memctx, struct sysdb_attrs);
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 84129fdac..86caa5ceb 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -269,6 +269,8 @@ char *sysdb_group_strdn(TALLOC_CTX *memctx,
struct ldb_context *sysdb_ctx_get_ldb(struct sysdb_ctx *sysdb);
+struct sss_domain_info *sysdb_ctx_get_domain(struct sysdb_ctx *sysdb);
+
int compare_ldb_dn_comp_num(const void *m1, const void *m2);
/* functions to start and finish transactions */