Lines Matching defs:sid

93     const char *sid;
101 sid = TEST_2_DOM_SID;
106 sid = TEST_DOM_SID;
110 err = sss_idmap_add_auto_domain_ex(test_ctx->idmap_ctx, name, sid,
114 err = sss_idmap_add_domain_ex(test_ctx->idmap_ctx, name, sid, &range,
123 err = sss_idmap_add_auto_domain_ex(test_ctx->idmap_ctx, name, sid,
127 err = sss_idmap_add_domain_ex(test_ctx->idmap_ctx, name, sid, &range,
140 const char *sid;
147 sid = TEST_DOM_SID;
149 err = sss_idmap_calculate_range(test_ctx->idmap_ctx, sid, &slice_num,
157 err = sss_idmap_add_domain_ex(test_ctx->idmap_ctx, name, sid, &range,
315 char *sid = NULL;
328 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, TEST_OFFSET - 1, &sid);
335 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, id, &sid);
337 assert_string_equal(sid, TEST_DOM_SID"-0");
338 sss_idmap_free_sid(test_ctx->idmap_ctx, sid);
345 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, id, &sid);
347 assert_string_equal(sid, TEST_DOM_SID"-"TEST_OFFSET_STR);
348 sss_idmap_free_sid(test_ctx->idmap_ctx, sid);
363 char *sid = NULL;
370 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, TEST_2922_MIN_ID, &sid);
372 assert_string_equal(sid, TEST_2922_FIRST_SID);
373 sss_idmap_free_sid(test_ctx->idmap_ctx, sid);
381 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, TEST_2922_MAX_ID, &sid);
383 assert_string_equal(sid, TEST_2922_LAST_SID);
384 sss_idmap_free_sid(test_ctx->idmap_ctx, sid);
393 &sid);
408 char *sid = NULL;
422 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, TEST_OFFSET - 1, &sid);
429 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, id, &sid);
431 assert_string_equal(sid, TEST_DOM_SID"-0");
432 sss_idmap_free_sid(test_ctx->idmap_ctx, sid);
439 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, id, &sid);
441 assert_string_equal(sid, TEST_DOM_SID"-"TEST_OFFSET_STR);
442 sss_idmap_free_sid(test_ctx->idmap_ctx, sid);
450 char *sid = NULL;
463 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, TEST_OFFSET - 1, &sid);
469 err = sss_idmap_unix_to_sid(test_ctx->idmap_ctx, TEST_RANGE_MIN, &sid);
477 TEST_RANGE_MIN + TEST_OFFSET, &sid);