summaryrefslogtreecommitdiff
path: root/src/tests
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/tests
parentefc81d1b44169206a2e55bb8e900d3859375abe3 (diff)
downloadsssd-7c26e3568d0d789067feef945086dff367408a1c.tar.gz
sssd-7c26e3568d0d789067feef945086dff367408a1c.tar.bz2
sssd-7c26e3568d0d789067feef945086dff367408a1c.zip
Add domain argument to sysdb_add_user()
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/sysdb-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c
index efa5339e..b645761e 100644
--- a/src/tests/sysdb-tests.c
+++ b/src/tests/sysdb-tests.c
@@ -191,7 +191,7 @@ static int test_add_user(struct test_data *data)
homedir = talloc_asprintf(data, "/home/testuser%d", data->uid);
gecos = talloc_asprintf(data, "Test User %d", data->uid);
- ret = sysdb_add_user(data->ctx->sysdb, data->username,
+ ret = sysdb_add_user(data->ctx->sysdb, data->ctx->domain, data->username,
data->uid, 0, gecos, homedir, "/bin/bash",
NULL, NULL, 0, 0);
return ret;
@@ -3397,7 +3397,7 @@ START_TEST(test_user_rename)
name, fromname);
/* Perform rename and check that GID is the same, but name changed */
- ret = sysdb_add_user(test_ctx->sysdb, toname, userid, 0,
+ ret = sysdb_add_user(test_ctx->sysdb, test_ctx->domain, toname, userid, 0,
fromname, "/", "/bin/sh", NULL, NULL, 0, 0);
fail_unless(ret == EEXIST, "A second user added with low level call?");