summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2011-05-18 10:54:47 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-08-15 09:16:38 -0400
commit237ade4114ae88f87c814d447dfd5aebdbdf72ef (patch)
tree80ac16e70d10d4781d6b469a9dce36e29cfd1983 /src
parent82c3185b2ccc1e99ff6c6d63d09754cbd0705e6c (diff)
downloadsssd-237ade4114ae88f87c814d447dfd5aebdbdf72ef.tar.gz
sssd-237ade4114ae88f87c814d447dfd5aebdbdf72ef.tar.xz
sssd-237ade4114ae88f87c814d447dfd5aebdbdf72ef.zip
Added sysdb_ctx_get_domain function
Diffstat (limited to 'src')
-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 */