added a basic dcerpc endpoint mapper to Samba4. Currently only
authorAndrew Tridgell <tridge@samba.org>
Sat, 13 Dec 2003 02:20:40 +0000 (02:20 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 13 Dec 2003 02:20:40 +0000 (02:20 +0000)
commit340d9b71f9e75d634389104da5949ba59669ede2
tree1bc2c22f57eade574841d8e4d9f3f5a5ff1c1022
parentf7065cc0a5555a32499908a499f926ede3f7d851
added a basic dcerpc endpoint mapper to Samba4. Currently only
implements the epm_Lookup() call, I'll add the other important calls
soon. I was rather pleased to find that epm_Lookup() worked first
time, which is particularly surprising given its complexity.

This required quite a bit of new infrastructure:

  * a generic way of handling dcerpc policy handles in the rpc server

  * added type checked varients of talloc. These are much less error
    prone. I'd like to move to using these for nearly all uses of
    talloc.

  * added more dcerpc fault handling code, and translation from
    NTSTATUS to a dcerpc fault code

  * added data_blob_talloc_zero() for allocating an initially zero
    blob

  * added a endpoint enumeration hook in the dcerpc endpoint server
    operations
(This used to be commit 3f85f9b782dc17417baf1ca557fcae22f5b6a83a)
14 files changed:
source4/Makefile.in
source4/include/talloc.h
source4/lib/data_blob.c
source4/lib/genparser.c
source4/lib/talloc.c
source4/lib/util.c
source4/librpc/idl/dcerpc.idl
source4/librpc/rpc/dcerpc_util.c
source4/rpc_server/dcerpc_server.c
source4/rpc_server/dcerpc_server.h
source4/rpc_server/echo/rpc_echo.c
source4/rpc_server/epmapper/rpc_epmapper.c [new file with mode: 0644]
source4/rpc_server/handles.c [new file with mode: 0644]
source4/torture/rpc/epmapper.c