(unsigned)r->in.access_mask,
(unsigned)astate->access_mask));
- ah = dcesrv_handle_new(dce_call->context, LSA_HANDLE_ACCOUNT);
+ ah = dcesrv_handle_create(dce_call, LSA_HANDLE_ACCOUNT);
if (!ah) {
talloc_free(astate);
return NT_STATUS_NO_MEMORY;
}
TALLOC_FREE(server_ids);
- handle = dcesrv_handle_new(dce_call->context, LSA_HANDLE_TRUSTED_DOMAIN);
+ handle = dcesrv_handle_create(dce_call, LSA_HANDLE_TRUSTED_DOMAIN);
if (!handle) {
return NT_STATUS_NO_MEMORY;
}
}
}
- handle = dcesrv_handle_new(dce_call->context, LSA_HANDLE_TRUSTED_DOMAIN);
+ handle = dcesrv_handle_create(dce_call, LSA_HANDLE_TRUSTED_DOMAIN);
if (!handle) {
return NT_STATUS_NO_MEMORY;
}
(unsigned)r->in.access_mask,
(unsigned)astate->access_mask));
- ah = dcesrv_handle_new(dce_call->context, LSA_HANDLE_ACCOUNT);
+ ah = dcesrv_handle_create(dce_call, LSA_HANDLE_ACCOUNT);
if (!ah) {
talloc_free(astate);
return NT_STATUS_NO_MEMORY;
return NT_STATUS_ACCESS_DENIED;
}
- handle = dcesrv_handle_new(dce_call->context, LSA_HANDLE_SECRET);
+ handle = dcesrv_handle_create(dce_call, LSA_HANDLE_SECRET);
NT_STATUS_HAVE_NO_MEMORY(handle);
handle->data = talloc_steal(handle, secret_state);
secret_state->secret_dn = talloc_reference(secret_state, msgs[0]->dn);
- handle = dcesrv_handle_new(dce_call->context, LSA_HANDLE_SECRET);
+ handle = dcesrv_handle_create(dce_call, LSA_HANDLE_SECRET);
if (!handle) {
return NT_STATUS_NO_MEMORY;
}