summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-06 17:42:57 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:49:20 +0100
commitc3ca06c011a34997cd6ec5d1e5927fee12bf2464 (patch)
treeedafe7f21cb2ad5f544691509bd7f20ffa4d06a1 /src/db
parent1826891a4869450994ae82adb60215ca564f9f4d (diff)
downloadsssd-c3ca06c011a34997cd6ec5d1e5927fee12bf2464.tar.gz
sssd-c3ca06c011a34997cd6ec5d1e5927fee12bf2464.tar.xz
sssd-c3ca06c011a34997cd6ec5d1e5927fee12bf2464.zip
Add domain argument to sysdb_initgroups()
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.h1
-rw-r--r--src/db/sysdb_search.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 151cd7f98..fcb5ba5b2 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -507,6 +507,7 @@ errno_t sysdb_getnetgr(TALLOC_CTX *mem_ctx,
int sysdb_initgroups(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
+ struct sss_domain_info *domain,
const char *name,
struct ldb_result **res);
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
index 34379d489..aab53bbca 100644
--- a/src/db/sysdb_search.c
+++ b/src/db/sysdb_search.c
@@ -384,6 +384,7 @@ done:
int sysdb_initgroups(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
+ struct sss_domain_info *domain,
const char *name,
struct ldb_result **_res)
{
@@ -401,7 +402,7 @@ int sysdb_initgroups(TALLOC_CTX *mem_ctx,
return ENOMEM;
}
- ret = sysdb_getpwnam(tmp_ctx, sysdb, sysdb->domain, name, &res);
+ ret = sysdb_getpwnam(tmp_ctx, sysdb, domain, name, &res);
if (ret != EOK) {
DEBUG(1, ("sysdb_getpwnam failed: [%d][%s]\n",
ret, strerror(ret)));