Lines Matching defs:dom_sid
42 struct dom_sid test_smb_sid = {1, 5, {0, 0, 0, 0, 0, 5}, {21, 2127521184, 1604012920, 1887927527, 72713, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
118 const char *dom_sid,
147 const char *dom_sid,
158 dom_name, dom_sid, range_id, min_id, max_id, first_rid);
486 struct sss_dom_sid *dom_sid = NULL;
488 err = sss_idmap_sid_to_dom_sid(idmap_ctx, "S-1-5-21-1-2-3-1000", &dom_sid);
491 err = sss_idmap_dom_sid_to_unix(idmap_ctx, dom_sid, &id);
497 sss_idmap_free_dom_sid(idmap_ctx, dom_sid);
555 struct sss_dom_sid *dom_sid = NULL;
558 err = sss_idmap_unix_to_dom_sid(idmap_ctx, 10000, &dom_sid);
562 err = sss_idmap_unix_to_dom_sid(idmap_ctx, 2234, &dom_sid);
565 err = sss_idmap_dom_sid_to_sid(idmap_ctx, dom_sid, &sid);
573 sss_idmap_free_dom_sid(idmap_ctx, dom_sid);
605 struct sss_dom_sid *dom_sid = NULL;
611 test_bin_sid_length, &dom_sid);
616 err = sss_idmap_dom_sid_to_bin_sid(idmap_ctx, dom_sid, &new_bin_sid,
626 sss_idmap_free_dom_sid(idmap_ctx, dom_sid);
633 struct sss_dom_sid *dom_sid = NULL;
637 err = sss_idmap_sid_to_dom_sid(idmap_ctx, "S-1-5-21-1-2-3-1000", &dom_sid);
642 err = sss_idmap_dom_sid_to_sid(idmap_ctx, dom_sid, &new_sid);
652 sss_idmap_free_dom_sid(idmap_ctx, dom_sid);
659 struct sss_dom_sid *dom_sid = NULL;
663 err = sss_idmap_sid_to_dom_sid(idmap_ctx, large_sid, &dom_sid);
669 err = sss_idmap_dom_sid_to_sid(idmap_ctx, dom_sid, &new_sid);
680 err = sss_idmap_sid_to_dom_sid(idmap_ctx, too_large_sid, &dom_sid);
685 sss_idmap_free_dom_sid(idmap_ctx, dom_sid);
728 struct sss_dom_sid *dom_sid = NULL;
730 struct dom_sid *new_smb_sid = NULL;
732 err = sss_idmap_smb_sid_to_dom_sid(idmap_ctx, &test_smb_sid, &dom_sid);
734 "Failed to convert samba dom_sid to struct sss_dom_sid.");
736 err = sss_idmap_dom_sid_to_smb_sid(idmap_ctx, dom_sid, &new_smb_sid);
738 "Failed to convert struct sss_dom_sid to samba dom_sid.");
740 fail_unless(memcmp(&test_smb_sid, new_smb_sid, sizeof(struct dom_sid)) == 0,
741 "Samba dom_sid-s do not match.");
743 sss_idmap_free_dom_sid(idmap_ctx, dom_sid);
757 "Failed to convert samba dom_sid to binary sid.");
771 struct dom_sid *smb_sid = NULL;
776 "Failed to convert binary sid to samba dom_sid.");
777 fail_unless(memcmp(&test_smb_sid, smb_sid, sizeof(struct dom_sid)) == 0,
778 "Samba dom_sid structs do not match.");
791 "Failed to convert samba dom_sid to sid string.");
803 struct dom_sid *smb_sid = NULL;
807 "Failed to convert binary sid to samba dom_sid.");
808 fail_unless(memcmp(&test_smb_sid, smb_sid, sizeof(struct dom_sid)) == 0,
809 "Samba dom_sid structs do not match.");