/********************************************************
Wrapper function for _internal_resolve_name() that returns
- talloc'ed memory. Eventually this will be the only version
- and then we can rename it to internal_resolve_name().
+ talloc'ed memory.
********************************************************/
-NTSTATUS internal_resolve_name_talloc(TALLOC_CTX *ctx,
+NTSTATUS internal_resolve_name(TALLOC_CTX *ctx,
const char *name,
int name_type,
const char *sitename,
sitename = sitename_fetch(frame, lp_realm()); /* wild guess */
- status = internal_resolve_name_talloc(frame,
+ status = internal_resolve_name(frame,
name,
name_type,
sitename,
sitename = sitename_fetch(ctx, lp_realm()); /* wild guess */
- status = internal_resolve_name_talloc(ctx,
+ status = internal_resolve_name(ctx,
name,
name_type,
sitename,
return false;
}
- status = internal_resolve_name_talloc(talloc_tos(),
+ status = internal_resolve_name(talloc_tos(),
group,
0x1D,
NULL,
TALLOC_FREE(ip_list);
- status = internal_resolve_name_talloc(talloc_tos(),
+ status = internal_resolve_name(talloc_tos(),
group,
0x1B,
NULL,
/* Look up #1B name */
if (lp_security() == SEC_ADS) {
- status = internal_resolve_name_talloc(talloc_tos(),
+ status = internal_resolve_name(talloc_tos(),
domain,
0x1b,
NULL,
if (!NT_STATUS_IS_OK(status) || count == 0) {
TALLOC_FREE(ip_list);
- status = internal_resolve_name_talloc(talloc_tos(),
+ status = internal_resolve_name(talloc_tos(),
domain,
0x1b,
NULL,
if (!done_auto_lookup && strequal(name, "*")) {
done_auto_lookup = true;
- status = internal_resolve_name_talloc(frame,
+ status = internal_resolve_name(frame,
domain,
auto_name_type,
sitename,
goto out;
}
/* talloc off frame, only move to ctx on success. */
- status = internal_resolve_name_talloc(frame,
+ status = internal_resolve_name(frame,
domain,
auto_name_type,
sitename,