From 58fd3aa25c5292bc67432647ab7e5059439fcc6d Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 6 Jan 2013 17:17:25 -0500 Subject: Pass domain to sysdb_getnam() functions Also allows us to remove sysdb_subdom_getnam() wrappers and restore fqnames proper value in subdomains, by testing for a parent domain being present or not. --- src/db/sysdb.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/db/sysdb.h') diff --git a/src/db/sysdb.h b/src/db/sysdb.h index 9f8c85bef..0c15cc663 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -429,15 +429,6 @@ errno_t sysdb_store_domgroup(struct sss_domain_info *domain, errno_t sysdb_delete_domgroup(struct sss_domain_info *domain, const char *name, gid_t gid); -int sysdb_subdom_getpwnam(TALLOC_CTX *mem_ctx, - struct sysdb_ctx *sysdb, - const char *name, - struct ldb_result **res); -int sysdb_subdom_getgrnam(TALLOC_CTX *mem_ctx, - struct sysdb_ctx *sysdb, - const char *name, - struct ldb_result **res); - errno_t sysdb_get_ranges(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, size_t *range_count, struct range_info ***range_list); @@ -464,6 +455,7 @@ int sysdb_domain_init(TALLOC_CTX *mem_ctx, * therefore they cannot be called within a transaction */ int sysdb_getpwnam(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *name, struct ldb_result **res); @@ -478,6 +470,7 @@ int sysdb_enumpwent(TALLOC_CTX *mem_ctx, int sysdb_getgrnam(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *name, struct ldb_result **res); -- cgit