summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-09-06 13:44:46 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-26 21:11:52 +0200
commit6ff294ac06863ea76463c3fa3549cc46a60b75ad (patch)
treeaaa3e1524f53226b1fa70dd28147c68a2fa4caec /src/tests
parent9cc66028cb6e497588a088ff2953e2ca7ed6ca6d (diff)
downloadsssd-6ff294ac06863ea76463c3fa3549cc46a60b75ad.tar.gz
sssd-6ff294ac06863ea76463c3fa3549cc46a60b75ad.tar.bz2
sssd-6ff294ac06863ea76463c3fa3549cc46a60b75ad.zip
sysdb: sysdb_update_members can take either name or dn
We need to work with distinguish names when processing cross-domain membership, because groups and users may be stored in different sysdb tree. Resolves: https://fedorahosted.org/sssd/ticket/2066
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/simple_access-tests.c4
-rw-r--r--src/tests/sysdb-tests.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/simple_access-tests.c b/src/tests/simple_access-tests.c
index aaf75787..6d214dc7 100644
--- a/src/tests/simple_access-tests.c
+++ b/src/tests/simple_access-tests.c
@@ -189,11 +189,11 @@ void setup_simple_group(void)
fail_if(ret != EOK, "Could not add g2");
ret = sysdb_add_group_member(test_ctx->sysdb, test_ctx->ctx->domain,
- "g1", "u1", SYSDB_MEMBER_USER);
+ "g1", "u1", SYSDB_MEMBER_USER, false);
fail_if(ret != EOK, "Could not add u1 to g1");
ret = sysdb_add_group_member(test_ctx->sysdb, test_ctx->ctx->domain,
- "g2", "u2", SYSDB_MEMBER_USER);
+ "g2", "u2", SYSDB_MEMBER_USER, false);
fail_if(ret != EOK, "Could not add u2 to g2");
}
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c
index d0aff2d7..781d3951 100644
--- a/src/tests/sysdb-tests.c
+++ b/src/tests/sysdb-tests.c
@@ -331,7 +331,7 @@ static int test_add_group_member(struct test_data *data)
ret = sysdb_add_group_member(data->ctx->sysdb, data->ctx->domain,
data->groupname, username,
- SYSDB_MEMBER_USER);
+ SYSDB_MEMBER_USER, false);
return ret;
}
@@ -347,7 +347,7 @@ static int test_remove_group_member(struct test_data *data)
ret = sysdb_remove_group_member(data->ctx->sysdb, data->ctx->domain,
data->groupname, username,
- SYSDB_MEMBER_USER);
+ SYSDB_MEMBER_USER, false);
return ret;
}
@@ -3969,7 +3969,7 @@ START_TEST(test_odd_characters)
/* Add to the group */
ret = sysdb_add_group_member(test_ctx->sysdb, test_ctx->domain,
odd_groupname, odd_username,
- SYSDB_MEMBER_USER);
+ SYSDB_MEMBER_USER, false);
fail_unless(ret == EOK, "sysdb_add_group_member error [%d][%s]",
ret, strerror(ret));