summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-05-15 15:22:47 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-05-25 09:16:38 +0200
commitad87b6f40368366bb86fd9139f6ccf417647ccb7 (patch)
tree5665242f8780db1d277abb9729d02f0aa4eed70d
parent6b1c393a24dde0fec239709f1d1d667f2ea873d7 (diff)
downloadsssd-ad87b6f40368366bb86fd9139f6ccf417647ccb7.tar.gz
sssd-ad87b6f40368366bb86fd9139f6ccf417647ccb7.tar.xz
sssd-ad87b6f40368366bb86fd9139f6ccf417647ccb7.zip
SDAP: Remove unnecessary argument from sdap_save_user
Reviewed-by: Pavel Březina <pbrezina@redhat.com> (cherry picked from commit dca741129d221558a4325479aefc617240f1ab08) (cherry picked from commit cd4e7846b8b1695956977e19a478198595946c4c)
-rw-r--r--src/providers/ldap/ldap_id.c2
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c2
-rw-r--r--src/providers/ldap/sdap_async_users.c4
-rw-r--r--src/providers/ldap/sdap_users.h1
4 files changed, 3 insertions, 6 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c
index 1a44de852..724990653 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 4f775d76b..4d9738ee6 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 89e5ae558..416bedda8 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 e452a44b9..1cc1cd1fa 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);