diff options
| author | Pavel Březina <pbrezina@redhat.com> | 2016-11-15 13:22:09 +0100 |
|---|---|---|
| committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-12-19 23:22:05 +0100 |
| commit | a22b0af1993a489c9c0e66fdc1083f43b410d12c (patch) | |
| tree | f0cf87fd7c839d2cb53c5078c33dfca3a248b950 /src/tests/cmocka | |
| parent | baadb6080be0ec5cee2e351c3d5324d755f86f9c (diff) | |
| download | sssd-a22b0af1993a489c9c0e66fdc1083f43b410d12c.tar.gz sssd-a22b0af1993a489c9c0e66fdc1083f43b410d12c.tar.xz sssd-a22b0af1993a489c9c0e66fdc1083f43b410d12c.zip | |
nss: move nss_ctx->global_names to rctx
Global names context is used to parse AD well known SIDs and names
into its opposite. This patch moves definition of this parameter
from nss responder into common responder context so it can be
used also by other responders.
This change will be use to enable looking up well known SIDs and
names directly in cache_req.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tests/cmocka')
| -rw-r--r-- | src/tests/cmocka/test_nss_srv.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tests/cmocka/test_nss_srv.c b/src/tests/cmocka/test_nss_srv.c index 3cfdb38f4..bc63c959f 100644 --- a/src/tests/cmocka/test_nss_srv.c +++ b/src/tests/cmocka/test_nss_srv.c @@ -1233,17 +1233,17 @@ void test_nss_setup(struct sss_test_conf_param params[], nss_test_ctx->nctx = mock_nctx(nss_test_ctx); assert_non_null(nss_test_ctx->nctx); - ret = sss_ad_default_names_ctx(nss_test_ctx->nctx, - &nss_test_ctx->nctx->global_names); - assert_int_equal(ret, EOK); - assert_non_null(nss_test_ctx->nctx->global_names); - nss_test_ctx->rctx = mock_rctx(nss_test_ctx, nss_test_ctx->tctx->ev, nss_test_ctx->tctx->dom, nss_test_ctx->nctx); assert_non_null(nss_test_ctx->rctx); nss_test_ctx->rctx->cdb = nss_test_ctx->tctx->confdb; nss_test_ctx->nctx->rctx = nss_test_ctx->rctx; + ret = sss_ad_default_names_ctx(nss_test_ctx->nctx, + &nss_test_ctx->nctx->rctx->global_names); + assert_int_equal(ret, EOK); + assert_non_null(nss_test_ctx->nctx->rctx->global_names); + /* Create client context */ nss_test_ctx->cctx = mock_cctx(nss_test_ctx, nss_test_ctx->rctx); assert_non_null(nss_test_ctx->cctx); @@ -1255,7 +1255,6 @@ void test_nss_setup(struct sss_test_conf_param params[], /* do after previous setup as the former nulls procotol_ctx */ nss_test_ctx->cctx->protocol_ctx = mock_prctx(nss_test_ctx->cctx); assert_non_null(nss_test_ctx->cctx->protocol_ctx); - } struct group getgrnam_no_members = { |
