Lines Matching refs:sid

221     char *sid;
230 sid = talloc_asprintf(global_talloc_context, SID_TMPL, c);
231 assert_non_null(sid);
237 assert_string_equal(sid, dom->domain_id);
243 assert_string_equal(sid, dom->domain_id);
249 assert_string_equal(sid, dom->domain_id);
256 talloc_free(sid);
268 char *sid;
289 sid = talloc_asprintf(global_talloc_context, SID_TMPL, c);
290 assert_non_null(sid);
300 assert_string_equal(sid, dom->domain_id);
310 assert_string_equal(sid, dom->domain_id);
319 assert_string_equal(sid, dom->domain_id);
327 talloc_free(sid);
339 char *sid;
360 sid = talloc_asprintf(global_talloc_context, SID_TMPL, c);
361 assert_non_null(sid);
370 assert_string_equal(sid, dom->domain_id);
380 assert_string_equal(sid, dom->domain_id);
390 assert_string_equal(sid, dom->domain_id);
398 talloc_free(sid);
426 char *sid;
435 sid = talloc_asprintf(global_talloc_context, SID_TMPL, c);
436 assert_non_null(sid);
438 dom = find_domain_by_sid(test_ctx->dom_list, sid);
442 assert_string_equal(sid, dom->domain_id);
446 talloc_free(sid);
458 char *sid;
479 sid = talloc_asprintf(global_talloc_context, SID_TMPL, c);
480 assert_non_null(sid);
482 dom = find_domain_by_sid(test_ctx->dom_list, sid);
489 assert_string_equal(sid, dom->domain_id);
494 talloc_free(sid);
506 char *sid;
527 sid = talloc_asprintf(global_talloc_context, SID_TMPL, c);
528 assert_non_null(sid);
530 dom = find_domain_by_sid(test_ctx->dom_list, sid);
537 assert_string_equal(sid, dom->domain_id);
542 talloc_free(sid);
981 const char *sid;
986 ret = name_to_well_known_sid("abc", "def", &sid);
989 ret = name_to_well_known_sid("", "def", &sid);
992 ret = name_to_well_known_sid("BUILTIN", "def", &sid);
995 ret = name_to_well_known_sid("NT AUTHORITY", "def", &sid);
998 ret = name_to_well_known_sid("LOCAL AUTHORITY", "LOCAL", &sid);
1000 assert_string_equal(sid, "S-1-2-0");
1002 ret = name_to_well_known_sid(NULL, "LOCAL", &sid);
1005 ret = name_to_well_known_sid("BUILTIN", "Cryptographic Operators", &sid);
1007 assert_string_equal(sid, "S-1-5-32-569");
1009 ret = name_to_well_known_sid("NT AUTHORITY", "DIALUP", &sid);
1011 assert_string_equal(sid, "S-1-5-1");