}
/* Winbindd calls directly to this function, not via the full auth stack */
-NTSTATUS check_sam_security(const DATA_BLOB *challenge,
- TALLOC_CTX *mem_ctx,
- const struct auth_usersupplied_info *user_info,
- struct auth_serversupplied_info **server_info)
+NTSTATUS check_sam_security_info3(const DATA_BLOB *challenge,
+ TALLOC_CTX *mem_ctx,
+ const struct auth_usersupplied_info *user_info,
+ struct netr_SamInfo3 **info3)
{
NTSTATUS status;
- TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
- struct netr_SamInfo3 *info3 = NULL;
- NT_STATUS_HAVE_NO_MEMORY(tmp_ctx);
- status = s3compat_authenticate(tmp_ctx, challenge->data, user_info, &info3);
- NT_STATUS_NOT_OK_RETURN_AND_FREE(status, tmp_ctx);
-
- status = make_server_info_info3(mem_ctx, user_info->client.account_name,
- user_info->mapped.domain_name, server_info,
- info3);
- if (!NT_STATUS_IS_OK(status)) {
- DEBUG(10, ("make_server_info_info3 failed: %s\n",
- nt_errstr(status)));
- }
- talloc_free(tmp_ctx);
+ status = s3compat_authenticate(mem_ctx, challenge->data, user_info, info3);
return status;
}