mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
s4:dsdb: Use Builtin SID constant
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
e6bb3a347f
commit
4405e709c0
@ -38,15 +38,15 @@ bool torture_ldb_no_attrs(struct torture_context *torture)
|
||||
const char *attrs[] = { NULL };
|
||||
|
||||
struct auth_session_info *session;
|
||||
struct dom_sid *domain_sid = NULL;
|
||||
struct dom_sid domain_sid;
|
||||
const char *path;
|
||||
|
||||
path = lpcfg_private_path(NULL, torture->lp_ctx, "sam.ldb");
|
||||
torture_assert(torture, path != NULL,
|
||||
"Couldn't find sam.ldb. Run with -s $SERVERCONFFILE");
|
||||
|
||||
domain_sid = dom_sid_parse_talloc(NULL, SID_BUILTIN);
|
||||
session = admin_session(NULL, torture->lp_ctx, domain_sid);
|
||||
domain_sid = global_sid_Builtin;
|
||||
session = admin_session(NULL, torture->lp_ctx, &domain_sid);
|
||||
ldb = ldb_wrap_connect(torture, torture->ev, torture->lp_ctx,
|
||||
path, session, NULL, 0);
|
||||
torture_assert(torture, ldb, "Failed to connect to LDB target");
|
||||
|
@ -1260,7 +1260,7 @@ static WERROR DsCrackNameOneFilter(struct ldb_context *sam_ctx, TALLOC_CTX *mem_
|
||||
info1->status = DRSUAPI_DS_NAME_STATUS_NO_MAPPING;
|
||||
return WERR_OK;
|
||||
}
|
||||
if (dom_sid_in_domain(dom_sid_parse_talloc(mem_ctx, SID_BUILTIN), sid)) {
|
||||
if (dom_sid_in_domain(&global_sid_Builtin, sid)) {
|
||||
_dom = "BUILTIN";
|
||||
} else {
|
||||
const char *attrs[] = { NULL };
|
||||
|
Reference in New Issue
Block a user