diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-05-15 15:22:47 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-05-22 12:31:01 +0200 |
commit | dca741129d221558a4325479aefc617240f1ab08 (patch) | |
tree | 308582cdb8edcbc4cb680b37b20fa5737b5f92be /src/providers/ldap | |
parent | d0cc678d20d8bde829450eb50bec1b7397cea3e1 (diff) | |
download | sssd-dca741129d221558a4325479aefc617240f1ab08.tar.gz sssd-dca741129d221558a4325479aefc617240f1ab08.tar.xz sssd-dca741129d221558a4325479aefc617240f1ab08.zip |
SDAP: Remove unnecessary argument from sdap_save_user
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/ldap_id.c | 2 | ||||
-rw-r--r-- | src/providers/ldap/sdap_async_initgroups.c | 2 | ||||
-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, 6 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index 034d5272b..33c039082 100644 --- a/src/providers/ldap/ldap_id.c +++ b/src/providers/ldap/ldap_id.c @@ -434,7 +434,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); |