diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-06 00:59:59 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:49:20 +0100 |
commit | 3613cc1eba1337256a2d06ba7a84532156139ccd (patch) | |
tree | db6b0b4facb78f7bad5917ffb9dda6c8789cab7b /src/tests | |
parent | 1e6f2180724de4722a5218826c9401181168d9d4 (diff) | |
download | sssd-3613cc1eba1337256a2d06ba7a84532156139ccd.tar.gz sssd-3613cc1eba1337256a2d06ba7a84532156139ccd.tar.bz2 sssd-3613cc1eba1337256a2d06ba7a84532156139ccd.zip |
Make sysdb_user_dn() require a domain explictly.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/sysdb-tests.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index c2e20c0a..f624ba4d 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -218,7 +218,8 @@ static int test_remove_user(struct test_data *data) struct ldb_dn *user_dn; int ret; - user_dn = sysdb_user_dn(data->ctx->sysdb, data, data->username); + user_dn = sysdb_user_dn(data->ctx->sysdb, data, + data->ctx->domain, data->username); if (!user_dn) return ENOMEM; ret = sysdb_delete_entry(data->ctx->sysdb, user_dn, true); @@ -1762,7 +1763,8 @@ START_TEST (test_sysdb_asq_search) data->attrlist[0] = "gidNumber"; data->attrlist[1] = NULL; - user_dn = sysdb_user_dn(data->ctx->sysdb, data, ASQ_TEST_USER); + user_dn = sysdb_user_dn(data->ctx->sysdb, data, + data->ctx->domain, ASQ_TEST_USER); fail_unless(user_dn != NULL, "sysdb_user_dn failed"); ret = sysdb_asq_search(data, test_ctx->sysdb, |