From cd4e7846b8b1695956977e19a478198595946c4c Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: May 22 2015 11:56:58 +0000 Subject: SDAP: Remove unnecessary argument from sdap_save_user Reviewed-by: Pavel Březina (cherry picked from commit dca741129d221558a4325479aefc617240f1ab08) --- diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index 1a44de8..7249906 100644 --- a/src/providers/ldap/ldap_id.c +++ b/src/providers/ldap/ldap_id.c @@ -433,7 +433,7 @@ static void users_get_done(struct tevent_req *subreq) name, uid, &usr_attrs); if (ret == EOK) { ret = sdap_save_user(state, state->ctx->opts, state->domain, - usr_attrs[0], false, NULL, 0); + usr_attrs[0], NULL, 0); } } } diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c index 4f775d7..4d9738e 100644 --- a/src/providers/ldap/sdap_async_initgroups.c +++ b/src/providers/ldap/sdap_async_initgroups.c @@ -2930,7 +2930,7 @@ static void sdap_get_initgr_user(struct tevent_req *subreq) DEBUG(SSSDBG_TRACE_ALL, "Storing the user\n"); ret = sdap_save_user(state, state->opts, state->dom, state->orig_user, - true, NULL, 0); + 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 89e5ae5..416bedd 100644 --- a/src/providers/ldap/sdap_async_users.c +++ b/src/providers/ldap/sdap_async_users.c @@ -116,7 +116,6 @@ int sdap_save_user(TALLOC_CTX *memctx, struct sdap_options *opts, struct sss_domain_info *dom, struct sysdb_attrs *attrs, - bool is_initgr, char **_usn_value, time_t now) { @@ -547,8 +546,7 @@ int sdap_save_users(TALLOC_CTX *memctx, for (i = 0; i < num_users; i++) { usn_value = NULL; - ret = sdap_save_user(tmpctx, opts, dom, users[i], false, - &usn_value, now); + ret = sdap_save_user(tmpctx, opts, dom, users[i], &usn_value, now); /* Do not fail completely on errors. * Just report the failure to save and go on */ diff --git a/src/providers/ldap/sdap_users.h b/src/providers/ldap/sdap_users.h index e452a44..1cc1cd1 100644 --- a/src/providers/ldap/sdap_users.h +++ b/src/providers/ldap/sdap_users.h @@ -35,7 +35,6 @@ int sdap_save_user(TALLOC_CTX *memctx, struct sdap_options *opts, struct sss_domain_info *dom, struct sysdb_attrs *attrs, - bool is_initgr, char **_usn_value, time_t now);