}
- handle = dcesrv_handle_new(dce_call->context, SAMR_HANDLE_CONNECT);
+ handle = dcesrv_handle_create(dce_call, SAMR_HANDLE_CONNECT);
if (!handle) {
talloc_free(c_state);
return NT_STATUS_NO_MEMORY;
initialize_guid_cache(&d_state->guid_caches[i]);
}
- h_domain = dcesrv_handle_new(dce_call->context, SAMR_HANDLE_DOMAIN);
+ h_domain = dcesrv_handle_create(dce_call, SAMR_HANDLE_DOMAIN);
if (!h_domain) {
talloc_free(d_state);
return NT_STATUS_NO_MEMORY;
a_state->account_name = talloc_steal(a_state, groupname);
/* create the policy handle */
- g_handle = dcesrv_handle_new(dce_call->context, SAMR_HANDLE_GROUP);
+ g_handle = dcesrv_handle_create(dce_call, SAMR_HANDLE_GROUP);
if (!g_handle) {
return NT_STATUS_NO_MEMORY;
}
}
/* create the policy handle */
- u_handle = dcesrv_handle_new(dce_call->context, SAMR_HANDLE_USER);
+ u_handle = dcesrv_handle_create(dce_call, SAMR_HANDLE_USER);
if (!u_handle) {
return NT_STATUS_NO_MEMORY;
}
a_state->account_name = talloc_steal(a_state, alias_name);
/* create the policy handle */
- a_handle = dcesrv_handle_new(dce_call->context, SAMR_HANDLE_ALIAS);
+ a_handle = dcesrv_handle_create(dce_call, SAMR_HANDLE_ALIAS);
if (a_handle == NULL)
return NT_STATUS_NO_MEMORY;
}
/* create the policy handle */
- g_handle = dcesrv_handle_new(dce_call->context, SAMR_HANDLE_GROUP);
+ g_handle = dcesrv_handle_create(dce_call, SAMR_HANDLE_GROUP);
if (!g_handle) {
return NT_STATUS_NO_MEMORY;
}
}
/* create the policy handle */
- g_handle = dcesrv_handle_new(dce_call->context, SAMR_HANDLE_ALIAS);
+ g_handle = dcesrv_handle_create(dce_call, SAMR_HANDLE_ALIAS);
if (!g_handle) {
return NT_STATUS_NO_MEMORY;
}
}
/* create the policy handle */
- u_handle = dcesrv_handle_new(dce_call->context, SAMR_HANDLE_USER);
+ u_handle = dcesrv_handle_create(dce_call, SAMR_HANDLE_USER);
if (!u_handle) {
return NT_STATUS_NO_MEMORY;
}