summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/providers/proxy/proxy_id.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c
index 10a82510a..f78d82b6a 100644
--- a/src/providers/proxy/proxy_id.c
+++ b/src/providers/proxy/proxy_id.c
@@ -30,7 +30,7 @@
/* =Getpwnam-wrapper======================================================*/
-static int save_user(struct sysdb_ctx *sysdb, struct sss_domain_info *domain,
+static int save_user(struct sss_domain_info *domain,
bool lowercase, struct passwd *pwd, const char *real_name,
const char *alias, uint64_t cache_timeout);
@@ -44,7 +44,6 @@ delete_user(struct sss_domain_info *domain,
static int get_pw_name(TALLOC_CTX *mem_ctx,
struct proxy_id_ctx *ctx,
- struct sysdb_ctx *sysdb,
struct sss_domain_info *dom,
const char *name)
{
@@ -135,7 +134,7 @@ static int get_pw_name(TALLOC_CTX *mem_ctx,
}
/* Both lookups went fine, we can save the user now */
- ret = save_user(sysdb, dom, !dom->case_sensitive, pwd,
+ ret = save_user(dom, !dom->case_sensitive, pwd,
real_name, name, dom->user_timeout);
done:
@@ -215,7 +214,7 @@ delete_user(struct sss_domain_info *domain,
return ret;
}
-static int save_user(struct sysdb_ctx *sysdb, struct sss_domain_info *domain,
+static int save_user(struct sss_domain_info *domain,
bool lowercase, struct passwd *pwd, const char *real_name,
const char *alias, uint64_t cache_timeout)
{
@@ -303,7 +302,6 @@ static int save_user(struct sysdb_ctx *sysdb, struct sss_domain_info *domain,
static int get_pw_uid(TALLOC_CTX *mem_ctx,
struct proxy_id_ctx *ctx,
- struct sysdb_ctx *sysdb,
struct sss_domain_info *dom,
uid_t uid)
{
@@ -348,7 +346,7 @@ static int get_pw_uid(TALLOC_CTX *mem_ctx,
goto done;
}
- ret = save_user(sysdb, dom, !dom->case_sensitive, pwd,
+ ret = save_user(dom, !dom->case_sensitive, pwd,
pwd->pw_name, NULL, dom->user_timeout);
done:
@@ -471,7 +469,7 @@ static int enum_users(TALLOC_CTX *mem_ctx,
break;
}
- ret = save_user(sysdb, dom, !dom->case_sensitive, pwd,
+ ret = save_user(dom, !dom->case_sensitive, pwd,
pwd->pw_name, NULL, dom->user_timeout);
if (ret) {
/* Do not fail completely on errors.
@@ -1243,7 +1241,7 @@ static int get_initgr(TALLOC_CTX *mem_ctx,
goto done;
}
- ret = save_user(sysdb, dom, !dom->case_sensitive, pwd,
+ ret = save_user(dom, !dom->case_sensitive, pwd,
real_name, name, dom->user_timeout);
if (ret) {
DEBUG(SSSDBG_OP_FAILURE, ("Could not save user\n"));
@@ -1403,7 +1401,7 @@ void proxy_get_account_info(struct be_req *breq)
break;
case BE_FILTER_NAME:
- ret = get_pw_name(breq, ctx, sysdb, domain, ar->filter_value);
+ ret = get_pw_name(breq, ctx, domain, ar->filter_value);
break;
case BE_FILTER_IDNUM:
@@ -1412,7 +1410,7 @@ void proxy_get_account_info(struct be_req *breq)
return be_req_terminate(breq, DP_ERR_FATAL,
EINVAL, "Invalid attr type");
}
- ret = get_pw_uid(breq, ctx, sysdb, domain, uid);
+ ret = get_pw_uid(breq, ctx, domain, uid);
break;
default:
return be_req_terminate(breq, DP_ERR_FATAL,