diff options
-rw-r--r-- | src/providers/ldap/ldap_id.c | 3 | ||||
-rw-r--r-- | src/providers/ldap/sdap_async_initgroups.c | 4 | ||||
-rw-r--r-- | src/providers/ldap/sdap_async_users.c | 4 | ||||
-rw-r--r-- | src/providers/ldap/sdap_users.h | 1 |
4 files changed, 3 insertions, 9 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index b92f07dd0..6fb675161 100644 --- a/src/providers/ldap/ldap_id.c +++ b/src/providers/ldap/ldap_id.c @@ -325,8 +325,7 @@ static void users_get_done(struct tevent_req *subreq) ret = sdap_fallback_local_user(state, state->ctx->opts, name, uid, &usr_attrs); if (ret == EOK) { - ret = sdap_save_user(state, state->sysdb, - state->ctx->opts, state->domain, + ret = sdap_save_user(state, state->ctx->opts, state->domain, usr_attrs[0], false, NULL, 0); } } diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c index 22df38148..91a3a82de 100644 --- a/src/providers/ldap/sdap_async_initgroups.c +++ b/src/providers/ldap/sdap_async_initgroups.c @@ -2797,9 +2797,7 @@ static void sdap_get_initgr_user(struct tevent_req *subreq) DEBUG(9, ("Storing the user\n")); - ret = sdap_save_user(state, state->sysdb, - state->opts, state->dom, - state->orig_user, + ret = sdap_save_user(state, state->opts, state->dom, state->orig_user, true, NULL, 0); if (ret) { goto fail; diff --git a/src/providers/ldap/sdap_async_users.c b/src/providers/ldap/sdap_async_users.c index 0a874d65e..9ccaae7bb 100644 --- a/src/providers/ldap/sdap_async_users.c +++ b/src/providers/ldap/sdap_async_users.c @@ -95,7 +95,6 @@ done: /* FIXME: support storing additional attributes */ int sdap_save_user(TALLOC_CTX *memctx, - struct sysdb_ctx *ctx, struct sdap_options *opts, struct sss_domain_info *dom, struct sysdb_attrs *attrs, @@ -527,8 +526,7 @@ int sdap_save_users(TALLOC_CTX *memctx, for (i = 0; i < num_users; i++) { usn_value = NULL; - ret = sdap_save_user(tmpctx, sysdb, opts, dom, - users[i], false, + ret = sdap_save_user(tmpctx, opts, dom, users[i], false, &usn_value, now); /* Do not fail completely on errors. diff --git a/src/providers/ldap/sdap_users.h b/src/providers/ldap/sdap_users.h index 16620a9ed..e452a44b9 100644 --- a/src/providers/ldap/sdap_users.h +++ b/src/providers/ldap/sdap_users.h @@ -32,7 +32,6 @@ errno_t sdap_fallback_local_user(TALLOC_CTX *memctx, struct sysdb_attrs ***reply); int sdap_save_user(TALLOC_CTX *memctx, - struct sysdb_ctx *ctx, struct sdap_options *opts, struct sss_domain_info *dom, struct sysdb_attrs *attrs, |