[samba-tng] dce/rpc "thread" context
Luke Kenneth Casson Leighton
lkcl at samba.org
Tue Feb 8 00:55:48 GMT 2000
ok, i finally came up with a scheme to maintain smbd vuid "thread"-like
context across smbd->msrpcd boundaries.
funnily enough, it's also (i hope!) suitable for use in creating a system
to potentially map multiple smbds to one msrpcd, because there is
sufficient info transferred to allow user-security-context switching.
we'll have to see.
the basic idea is that smbd sends incoming msrpc pdus on loopback with a
context_id in the header (DCE/RPC header). _or_ is passes-through a
context_id from an outside connection (a _real_ context_id from a real,
remote DCE/RPC connection).
either way, the context_id is used to reference a lookup table, to map to
the [smbd pid, smbd vuid] tuple for the user-security-context.
each _new_ context_id that is encountered will need a new entry in the
lookup table to created, and this is what creates a new pipes_struct.
i removed all the lookup table usage (pipes_struct) in msrpcd, because i
didn't know what to do with it (!!!!).
now i have to put it all back :)
<a href="mailto:lkcl at samba.org" > Luke Kenneth Casson Leighton </a>
<a href="http://www.cb1.com/~lkcl"> Samba and Network Development </a>
<a href="http://samba.org" > Samba Web site </a>
<a href="http://www.iss.net" > Internet Security Systems, Inc. </a>
<a href="http://mcp.com" > Macmillan Technical Publishing </a>
ISBN1578701503 DCE/RPC over SMB: Samba and Windows NT Domain Internals
More information about the samba-technical