summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2005-07-03 14:47:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:07 -0500
commit45500d41766a7e8cc4c0846f6ce1faa9da4c8297 (patch)
tree2f7607a5665f751720539728277541afacdb256b
parent8cedebd9936c3a0ad46b169351d11d116a36ed6e (diff)
downloadsamba-45500d41766a7e8cc4c0846f6ce1faa9da4c8297.tar.gz
samba-45500d41766a7e8cc4c0846f6ce1faa9da4c8297.tar.bz2
samba-45500d41766a7e8cc4c0846f6ce1faa9da4c8297.zip
r8096: Remove function that has became libnet_Lookup fuction.
rafal (This used to be commit 9885749e36435b301c992e50d0a189860cfa4b5e)
-rw-r--r--source4/libnet/libnet_rpc.c55
-rw-r--r--source4/libnet/libnet_rpc.h23
2 files changed, 0 insertions, 78 deletions
diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c
index 33d32c25dd..b82589d2dd 100644
--- a/source4/libnet/libnet_rpc.c
+++ b/source4/libnet/libnet_rpc.c
@@ -22,61 +22,6 @@
#include "libcli/nbt/libnbt.h"
#include "libnet/libnet.h"
-/**
- * Finds a domain pdc (generic part)
- *
- * @param ctx initialised libnet context
- * @param mem_ctx memory context of this call
- * @param r data structure containing necessary parameters and return values
- * @return nt status of the call
- **/
-
-static NTSTATUS libnet_find_pdc_generic(struct libnet_context *ctx, TALLOC_CTX *mem_ctx,
- union libnet_find_pdc *r)
-{
- const char *address;
- NTSTATUS status;
- struct nbt_name name;
-
- if (is_ipaddress(r->generic.in.domain_name)) {
- r->generic.out.pdc_name = r->generic.in.domain_name;
- return NT_STATUS_OK;
- }
-
- make_nbt_name(&name, r->generic.in.domain_name, NBT_NAME_PDC);
-
- status = resolve_name(&name, mem_ctx, &address);
- if (!NT_STATUS_IS_OK(status)) {
- name.type = NBT_NAME_SERVER;
- status = resolve_name(&name, mem_ctx, &address);
- }
- NT_STATUS_NOT_OK_RETURN(status);
-
- r->generic.out.pdc_name = talloc_strdup(mem_ctx, address);
-
- return NT_STATUS_OK;
-}
-
-
-/**
- * Finds a domain pdc function
- *
- * @param ctx initialised libnet context
- * @param mem_ctx memory context of this call
- * @param r data structure containing necessary parameters and return values
- * @return nt status of the call
- **/
-
-NTSTATUS libnet_find_pdc(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_find_pdc *r)
-{
- switch (r->generic.level) {
- case LIBNET_FIND_PDC_GENERIC:
- return libnet_find_pdc_generic(ctx, mem_ctx, r);
- }
-
- return NT_STATUS_INVALID_LEVEL;
-}
-
/**
* Connects rpc pipe on remote server
diff --git a/source4/libnet/libnet_rpc.h b/source4/libnet/libnet_rpc.h
index 3a4e9459cc..19a9d3f227 100644
--- a/source4/libnet/libnet_rpc.h
+++ b/source4/libnet/libnet_rpc.h
@@ -42,26 +42,3 @@ struct libnet_RpcConnect {
const char *error_string;
} out;
};
-
-
-
-
-/* struct and enum for finding a domain controller */
-enum libnet_find_pdc_level {
- LIBNET_FIND_PDC_GENERIC
-};
-
-union libnet_find_pdc {
- /* find to a domains PDC */
- struct {
- enum libnet_find_pdc_level level;
-
- struct {
- const char *domain_name;
- } in;
-
- struct {
- const char *pdc_name;
- } out;
- } generic;
-};