summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/sss_seed.c2
-rw-r--r--src/tools/sss_sync_ops.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/sss_seed.c b/src/tools/sss_seed.c
index 45b4d1ad..5e4504e0 100644
--- a/src/tools/sss_seed.c
+++ b/src/tools/sss_seed.c
@@ -739,7 +739,7 @@ static int seed_cache_user(struct seed_ctx *sctx)
in_transaction = true;
if (sctx->user_cached == false) {
- ret = sysdb_add_user(sctx->sysdb, sctx->uctx->name,
+ ret = sysdb_add_user(sctx->sysdb, sctx->domain, sctx->uctx->name,
sctx->uctx->uid, sctx->uctx->gid,
sctx->uctx->gecos, sctx->uctx->home,
sctx->uctx->shell, NULL, NULL, 0, 0);
diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c
index 34618825..46e86cec 100644
--- a/src/tools/sss_sync_ops.c
+++ b/src/tools/sss_sync_ops.c
@@ -468,7 +468,8 @@ int useradd(TALLOC_CTX *mem_ctx,
{
int ret;
- ret = sysdb_add_user(sysdb, data->name, data->uid, data->gid,
+ ret = sysdb_add_user(sysdb,
+ data->domain, data->name, data->uid, data->gid,
data->gecos, data->home, data->shell,
NULL, NULL, 0, 0);
if (ret) {