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_useradd.c2
4 files changed, 2 insertions, 4 deletions
diff --git a/src/python/pysss.c b/src/python/pysss.c
index 5fecbb307..b248313ca 100644
--- a/src/python/pysss.c
+++ b/src/python/pysss.c
@@ -236,7 +236,7 @@ static PyObject *py_sss_useradd(PySssLocalObject *self,
in_transaction = true;
/* useradd */
- tctx->error = useradd(tctx, tctx->sysdb, tctx->octx);
+ tctx->error = useradd(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 486af85db..8c3468d1a 100644
--- a/src/tools/sss_sync_ops.c
+++ b/src/tools/sss_sync_ops.c
@@ -460,7 +460,6 @@ done:
* Public interface for adding users
*/
int useradd(TALLOC_CTX *mem_ctx,
- struct sysdb_ctx *sysdb,
struct ops_ctx *data)
{
int ret;
diff --git a/src/tools/sss_sync_ops.h b/src/tools/sss_sync_ops.h
index 5fed1cfa6..69d3e5e9f 100644
--- a/src/tools/sss_sync_ops.h
+++ b/src/tools/sss_sync_ops.h
@@ -73,7 +73,6 @@ int userdel_defaults(TALLOC_CTX *mem_ctx,
/* synchronous operations */
int useradd(TALLOC_CTX *mem_ctx,
- struct sysdb_ctx *sysdb,
struct ops_ctx *data);
int userdel(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
diff --git a/src/tools/sss_useradd.c b/src/tools/sss_useradd.c
index a1eef8d64..395b2651c 100644
--- a/src/tools/sss_useradd.c
+++ b/src/tools/sss_useradd.c
@@ -187,7 +187,7 @@ int main(int argc, const char **argv)
in_transaction = true;
/* useradd */
- tctx->error = useradd(tctx, tctx->sysdb, tctx->octx);
+ tctx->error = useradd(tctx, tctx->octx);
if (tctx->error) {
goto done;
}