diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-09 11:01:39 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-09 11:01:39 +0000 |
commit | 3fa8da4d26d9a880a2a4911a32f222fbc5d2eeaa (patch) | |
tree | 54e52cd01f56691ba2a0d102e88ffd9bbfa3b96d /source4/librpc/rpc | |
parent | 3c669340f529c559bff88168c3f9ddac9790d6c3 (diff) | |
download | samba-3fa8da4d26d9a880a2a4911a32f222fbc5d2eeaa.tar.gz samba-3fa8da4d26d9a880a2a4911a32f222fbc5d2eeaa.tar.bz2 samba-3fa8da4d26d9a880a2a4911a32f222fbc5d2eeaa.zip |
- fixed lsa_EnumTrustDom
- added lsa_OpenAccount
- handle STATUS_SOME_UNMAPPED
(This used to be commit e5d93cf996b3e9647ef0ca45f6aab7601369936b)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc.c | 4 | ||||
-rw-r--r-- | source4/librpc/rpc/rpc_lsa.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 9e6c05e7ae..682735c000 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -798,6 +798,10 @@ NTSTATUS dcerpc_ndr_request(struct dcerpc_pipe *p, goto failed; } + if (pull->offset != pull->data_size) { + DEBUG(0,("Warning! %d unread bytes\n", pull->data_size - pull->offset)); + } + failed: ndr_push_free(push); return status; diff --git a/source4/librpc/rpc/rpc_lsa.c b/source4/librpc/rpc/rpc_lsa.c index bc2f00c33d..c5c18fe7ea 100644 --- a/source4/librpc/rpc/rpc_lsa.c +++ b/source4/librpc/rpc/rpc_lsa.c @@ -241,12 +241,12 @@ NTSTATUS dcerpc_CREATESECRET(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct return r->out.result; } -NTSTATUS dcerpc_OPENACCOUNT(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct OPENACCOUNT *r) +NTSTATUS dcerpc_lsa_OpenAccount(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_OpenAccount *r) { NTSTATUS status; - status = dcerpc_ndr_request(p, DCERPC_OPENACCOUNT, mem_ctx, - (ndr_push_fn_t) ndr_push_OPENACCOUNT, - (ndr_pull_fn_t) ndr_pull_OPENACCOUNT, + status = dcerpc_ndr_request(p, DCERPC_LSA_OPENACCOUNT, mem_ctx, + (ndr_push_fn_t) ndr_push_lsa_OpenAccount, + (ndr_pull_fn_t) ndr_pull_lsa_OpenAccount, r); if (!NT_STATUS_IS_OK(status)) { return status; |