diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2011-05-18 10:54:47 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-08-15 09:16:38 -0400 |
commit | 237ade4114ae88f87c814d447dfd5aebdbdf72ef (patch) | |
tree | 80ac16e70d10d4781d6b469a9dce36e29cfd1983 | |
parent | 82c3185b2ccc1e99ff6c6d63d09754cbd0705e6c (diff) | |
download | sssd-237ade4114ae88f87c814d447dfd5aebdbdf72ef.tar.gz sssd-237ade4114ae88f87c814d447dfd5aebdbdf72ef.tar.bz2 sssd-237ade4114ae88f87c814d447dfd5aebdbdf72ef.zip |
Added sysdb_ctx_get_domain function
-rw-r--r-- | src/db/sysdb.c | 5 | ||||
-rw-r--r-- | src/db/sysdb.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 99c116b8..d07f27df 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 84129fda..86caa5ce 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 */ |