delineation between smb and msrpc more marked. smbd now constructs
authorLuke Leighton <lkcl@samba.org>
Sun, 12 Dec 1999 01:25:49 +0000 (01:25 +0000)
committerLuke Leighton <lkcl@samba.org>
Sun, 12 Dec 1999 01:25:49 +0000 (01:25 +0000)
commitaa3c659a8dba0437c17c60055a6ed30fdfecdb6d
tree7b2944bd50eb23a3df886effcc2d7592c280422b
parente1d2b174caf5f0c48a8fac25778f72a868ec6eb7
delineation between smb and msrpc more marked.  smbd now constructs
pdus, and then feeds them over either a "local" function call or a "remote"
function call to an msrpc service.  the "remote" msrpc daemon, on the
other side of a unix socket, then calls the same "local" function that
smbd would, if the msrpc service were being run from inside smbd.

this allows a transition from local msrpc services (inside the same smbd
process) to remote (over a unix socket).

removed reference to pipes_struct in msrpc services.  all msrpc processing
functions take rpcsrv_struct which is a structure containing state info
for the msrpc functions to decode and create pdus.

created become_vuser() which does everything not related to connection_struct
that become_user() does.

removed, as best i could, connection_struct dependencies from the nt spoolss
printing code.

todo: remove dcinfo from rpcsrv_struct because this stores NETLOGON-specific
info on a per-connection basis, and if the connection dies then so does
the info, and that's a fairly serious problem.

had to put pretty much everything that is in user_struct into parse_creds.c
to feed unix user info over to the msrpc daemons.  why?  because it's
expensive to do unix password/group database lookups, and it's definitely
expensive to do nt user profile lookups, not to mention pretty difficult
and if you did either of these it would introduce a complication /
unnecessary interdependency.  so, send uid/gid/num_groups/gid_t* +
SID+num_rids+domain_group_rids* + unix username + nt username + nt domain
+ user session key etc.  this is the MINIMUM info identified so far that's
actually implemented.  missing bits include the called and calling
netbios names etc.  (basically, anything that can be loaded into
standard_sub() and standard_sub_basic()...)
42 files changed:
source/include/ntdomain.h
source/include/proto.h
source/include/rpc_creds.h
source/include/rpc_spoolss.h
source/include/smb.h
source/lib/membuffer.c
source/lib/msrpc-client.c
source/lib/passcheck.c
source/lib/util.c
source/lib/vuser.c
source/libsmb/clientgen.c
source/lsarpcd/lsarpcd.c
source/lsarpcd/lsarpcd_process.c
source/lsarpcd/srv_lsa.c
source/printing/nt_printing.c
source/printing/printing.c
source/rpc_client/cli_pipe.c
source/rpc_client/cli_samr.c
source/rpc_parse/parse_at.c
source/rpc_parse/parse_creds.c
source/rpc_parse/parse_net.c
source/rpc_parse/parse_prs.c
source/rpc_parse/parse_rpc.c
source/rpc_parse/parse_samr.c
source/rpc_parse/parse_spoolss.c
source/rpc_parse/parse_srv.c
source/rpc_server/srv_brs.c
source/rpc_server/srv_lsa.c
source/rpc_server/srv_netlog.c
source/rpc_server/srv_pipe.c
source/rpc_server/srv_pipe_hnd.c
source/rpc_server/srv_reg.c
source/rpc_server/srv_samr.c
source/rpc_server/srv_spoolss.c
source/rpc_server/srv_srvsvc.c
source/rpc_server/srv_svcctl.c
source/rpc_server/srv_wkssvc.c
source/rpcclient/cmd_samr.c
source/smbd/close.c
source/smbd/ipc.c
source/smbd/password.c
source/smbd/uid.c