summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/python/pysss.c2
-rw-r--r--src/tools/sss_sync_ops.c1
-rw-r--r--src/tools/sss_sync_ops.h1
-rw-r--r--src/tools/sss_userdel.c2
-rw-r--r--src/tools/sss_usermod.c2
5 files changed, 3 insertions, 5 deletions
diff --git a/src/python/pysss.c b/src/python/pysss.c
index c516cbffe..8f362ffe0 100644
--- a/src/python/pysss.c
+++ b/src/python/pysss.c
@@ -500,7 +500,7 @@ static PyObject *py_sss_usermod(PySssLocalObject *self,
in_transaction = true;
/* usermod */
- tctx->error = usermod(tctx, tctx->sysdb, tctx->octx);
+ tctx->error = usermod(tctx, tctx->octx);
if (tctx->error) {
PyErr_SetSssError(tctx->error);
goto fail;
diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c
index b4b1e99a3..539d09ca4 100644
--- a/src/tools/sss_sync_ops.c
+++ b/src/tools/sss_sync_ops.c
@@ -190,7 +190,6 @@ static int usermod_build_attrs(TALLOC_CTX *mem_ctx,
* Public interface for modifying users
*/
int usermod(TALLOC_CTX *mem_ctx,
- struct sysdb_ctx *sysdb,
struct ops_ctx *data)
{
struct sysdb_attrs *attrs = NULL;
diff --git a/src/tools/sss_sync_ops.h b/src/tools/sss_sync_ops.h
index c1b787487..0da497ad4 100644
--- a/src/tools/sss_sync_ops.h
+++ b/src/tools/sss_sync_ops.h
@@ -79,7 +79,6 @@ int userdel(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
struct ops_ctx *data);
int usermod(TALLOC_CTX *mem_ctx,
- struct sysdb_ctx *sysdb,
struct ops_ctx *data);
int groupadd(struct sysdb_ctx *sysdb,
diff --git a/src/tools/sss_userdel.c b/src/tools/sss_userdel.c
index 9d6c088c5..ad2d5b38a 100644
--- a/src/tools/sss_userdel.c
+++ b/src/tools/sss_userdel.c
@@ -79,7 +79,7 @@ static int kick_user(struct tools_ctx *tctx)
tctx->octx->lock = 1;
- ret = usermod(tctx, tctx->sysdb, tctx->octx);
+ ret = usermod(tctx, tctx->octx);
if (ret != EOK) {
return ret;
}
diff --git a/src/tools/sss_usermod.c b/src/tools/sss_usermod.c
index 09946e9ac..e0ae99ea0 100644
--- a/src/tools/sss_usermod.c
+++ b/src/tools/sss_usermod.c
@@ -224,7 +224,7 @@ int main(int argc, const char **argv)
in_transaction = true;
/* usermod */
- tctx->error = usermod(tctx, tctx->sysdb, tctx->octx);
+ tctx->error = usermod(tctx, tctx->octx);
if (tctx->error) {
goto done;
}