CVS update: samba/source/rpc_pipes
Luke Leighton
lkcl at samba.anu.edu.au
Tue Dec 16 06:23:04 EST 1997
Date: Tuesday December 16, 1997 @ 6:23
Author: lkcl
Update of /data/cvs/samba/source/rpc_pipes
In directory samba:/tmp/cvs-serv28045/rpc_pipes
Modified Files:
Tag: BRANCH_NTDOM
ntclientpipe.c ntclientsamr.c pipe_hnd.c pipenetlog.c
pipentlsa.c pipereg.c pipesamr.c pipesrvsvc.c pipeutil.c
pipewkssvc.c samrparse.c
Log Message:
Issues
------
- hooray! got the BUFFER_OVERFLOW code debugged, on both client and server.
you know what, i think the \PIPE\ stuff in NT is really neat. i take my
hat off to the NT developers (which i lost last week. damn).
- added SamrQueryUserGroupsInfo call (\PIPE\samr function 0x27).
- put a -u and -g option on to the smbclient samusers command.
- renamed SAMR_LOOKUP_RIDS to SAMR_LOOKUP_NAMES.
- removed the data_off and rdata_off arguments from api_fd_commands. this
wasn't exactly what i wanted to do, so they will go back. the reason is
that i intend to modify struct mem_buffer to contain a struct mem_buffer
*next member. then, you can create lists of mem_buffers. each mem_buffer
would be a single structure (e.g a RPC_HDR or a LSA_R_OPEN_SECRET).
if you wanted to do a partial rewrite of the smb processing code, the
smb header, the data, params, rdata and rparams could also be stored in
struct mem_buffers, and you then link them all together :-)
Modified Files
--------------
clientgen.c :
debug info in cli_readx and cli_error. cli_error now only returns
True on a critical error (0xc0000000), not a warning (0x80000000).
ipc.c :
added buffer overflow detection. removed the int* data_off and int* rdata_off
parameters, which i'll probably put back in, from the api_fd_commands functions.
ntclient.c :
added print-out info for Sam User Info (level 0x15) and SAM User Groups.
added -g and -u options to the samuser command.
moved sam user info code into rpc_pipes/ntclientsamr.c.
ntdomain.h rpc_pipes/samrparse.c rpc_pipes/ntclientpipe.c rpc_pipes/ntclientsamr.c :
- added SAMR_QUERY_USERGROUPS.
- renamed SAMR_LOOKUP_RIDS to SAMR_LOOKUP_NAMES.
nterr.c nterr.h :
added STATUS_BUFFER_OVERFLOW message (don't understand how this is
generated in netmon).
pipes.c :
bug in SMBreadX response (reply_pipe_read_and_X) in putting the fnum.
should be vwv2 not vwv0
reply.c :
added call to reply_pipe_read_and_X from reply_read_and_X if the connection
is to an anonymous IPC$
server.c :
added CAN_IPC to the SMBreadX command.
time.c :
added string parsing of NTTIME structures, and such-like.
rpc_pipes/ntclientpipe.c :
modified client set pipe state and rpc bind calls to use rpc_api_pipe()
not cli_api_pipe().
rpc_pipes/ntclientsamr.c :
- added samr_query_usergroups; added samr_query_userinfo_15; added
do_samr_query_usergroups. samr_query_userinfo_15 is taken from
ntclient.c.
- modified do_samr_enum_dom_users to use rpc_api_pipe()
not cli_api_pipe().
rpc_pipes/pipe_hnd.c :
debug info in read_pipe() function
rpc_pipes/pipenetlog.c rpc_pipes/pipentlsa.c rpc_pipes/pipesamr.c
rpc_pipes/pipesrvsvc.c rpc_pipes/pipereg.c rpc_pipes/wkssvc.c :
removed the data_off and rdata_off arguments. i intend to put
them back :-)
rpc_pipes/pipesamr.c :
renamed samr lookup rids to samr lookup names.
rpc_pipes/pipeutil.c :
created client-side rpc_api_pipe() command. this is capable of
detecting the BUFFER_OVERFLOW warning, and then issuing SMBreadX
commands. hooray!
rpc_pipes/samrparse.c :
- missed some debug statements.
- renamed samr lookup rids to samr lookup names.
- added samr query user groups (0x27) parsing
More information about the samba-cvs
mailing list