diff options
-rw-r--r-- | source4/libnet/config.mk | 1 | ||||
-rw-r--r-- | source4/libnet/libnet.h | 1 | ||||
-rw-r--r-- | source4/libnet/libnet_become_dc.c | 41 | ||||
-rw-r--r-- | source4/libnet/libnet_become_dc.h | 29 |
4 files changed, 72 insertions, 0 deletions
diff --git a/source4/libnet/config.mk b/source4/libnet/config.mk index 9dcaff57d2..2402974a82 100644 --- a/source4/libnet/config.mk +++ b/source4/libnet/config.mk @@ -14,6 +14,7 @@ OBJ_FILES = \ libnet_rpc.o \ libnet_join.o \ libnet_site.o \ + libnet_become_dc.o \ libnet_vampire.o \ libnet_samdump.o \ libnet_samdump_keytab.o \ diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h index c70c419a2d..7f5ac96b30 100644 --- a/source4/libnet/libnet.h +++ b/source4/libnet/libnet.h @@ -58,6 +58,7 @@ struct libnet_context { #include "libnet/libnet_rpc.h" #include "libnet/libnet_join.h" #include "libnet/libnet_site.h" +#include "libnet/libnet_become_dc.h" #include "libnet/libnet_vampire.h" #include "libnet/libnet_user.h" #include "libnet/libnet_share.h" diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c new file mode 100644 index 0000000000..158210c11c --- /dev/null +++ b/source4/libnet/libnet_become_dc.c @@ -0,0 +1,41 @@ +/* + Unix SMB/CIFS implementation. + + Copyright (C) Stefan Metzmacher 2006 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include "includes.h" +#include "libnet/libnet.h" + +struct composite_context *libnet_BecomeDC_send(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r) +{ + return NULL; +} + +NTSTATUS libnet_BecomeDC_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r) +{ + return NT_STATUS_NOT_IMPLEMENTED; +} + +NTSTATUS libnet_BecomeDC(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r) +{ + NTSTATUS status; + struct composite_context *c; + c = libnet_BecomeDC_send(ctx, mem_ctx, r); + status = libnet_BecomeDC_recv(c, mem_ctx, r); + return status; +} diff --git a/source4/libnet/libnet_become_dc.h b/source4/libnet/libnet_become_dc.h new file mode 100644 index 0000000000..6cda4d89b3 --- /dev/null +++ b/source4/libnet/libnet_become_dc.h @@ -0,0 +1,29 @@ +/* + Unix SMB/CIFS implementation. + + Copyright (C) Stefan Metzmacher 2006 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +struct libnet_BecomeDC { + struct { + const char *dest_address; + } in; + + struct { + const char *error_string; + } out; +}; |