diff options
Diffstat (limited to 'source3/librpc')
-rw-r--r-- | source3/librpc/gen_ndr/libnetapi.h | 13 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_libnetapi.c | 31 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_libnetapi.h | 7 |
3 files changed, 50 insertions, 1 deletions
diff --git a/source3/librpc/gen_ndr/libnetapi.h b/source3/librpc/gen_ndr/libnetapi.h index 517093829a..dda4fadd5f 100644 --- a/source3/librpc/gen_ndr/libnetapi.h +++ b/source3/librpc/gen_ndr/libnetapi.h @@ -196,4 +196,17 @@ struct NetUserAdd { }; + +struct NetUserDel { + struct { + const char * server_name;/* [unique] */ + const char * user_name;/* [ref] */ + } in; + + struct { + enum NET_API_STATUS result; + } out; + +}; + #endif /* _HEADER_libnetapi */ diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 29271ae5f0..54b3d3e925 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -599,3 +599,34 @@ _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r) +{ + ndr_print_struct(ndr, name, "NetUserDel"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserDel"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_ptr(ndr, "user_name", r->in.user_name); + ndr->depth++; + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserDel"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.h b/source3/librpc/gen_ndr/ndr_libnetapi.h index b335b11d9f..879e2d6faa 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.h +++ b/source3/librpc/gen_ndr/ndr_libnetapi.h @@ -26,7 +26,9 @@ #define NDR_NETUSERADD (0x09) -#define NDR_LIBNETAPI_CALL_COUNT (10) +#define NDR_NETUSERDEL (0x0a) + +#define NDR_LIBNETAPI_CALL_COUNT (11) enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r); enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r); void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r); @@ -69,4 +71,7 @@ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, c enum ndr_err_code ndr_push_NetUserAdd(struct ndr_push *ndr, int flags, const struct NetUserAdd *r); enum ndr_err_code ndr_pull_NetUserAdd(struct ndr_pull *ndr, int flags, struct NetUserAdd *r); void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r); +enum ndr_err_code ndr_push_NetUserDel(struct ndr_push *ndr, int flags, const struct NetUserDel *r); +enum ndr_err_code ndr_pull_NetUserDel(struct ndr_pull *ndr, int flags, struct NetUserDel *r); +void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r); #endif /* _HEADER_NDR_libnetapi */ |