summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-07 18:37:57 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:53:01 +0100
commit7c26e3568d0d789067feef945086dff367408a1c (patch)
tree39346e4f175d1c3d7d04087338c478317fb2fc2e /src/tools
parentefc81d1b44169206a2e55bb8e900d3859375abe3 (diff)
downloadsssd-7c26e3568d0d789067feef945086dff367408a1c.tar.gz
sssd-7c26e3568d0d789067feef945086dff367408a1c.tar.bz2
sssd-7c26e3568d0d789067feef945086dff367408a1c.zip
Add domain argument to sysdb_add_user()
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) {