Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Per-connection info in DCE RPC server?
@ 1994-02-02 16:35 Brad Daniels
  1994-02-08  7:28 ` Jonathan Chinitz
  1994-02-09 18:19 ` Rich Salz
  0 siblings, 2 replies; 4+ messages in thread
From: Brad Daniels @ 1994-02-02 16:35 UTC (permalink / raw)


We have an application which we want to be able to run either with or without
security services.  In order to simplify implementation, we'd like to keep
a table of per-user customization information, and look up that information
inside our server function each time it is called.  That way, we can establish
user contexts using either the security services or a voluntary non-secure
identification scheme, then do the lookups the same in either case.  The only
problem is, we can't determine what would be a good key to use for the lookup.
Is the binding handle coming in to the server routine unique to each client,
or is it just the same as the binding handles on the clients' side (all of
which should be the same)?

How is this situation usually handled?

Thanks!
- Brad
-------------------------------------------------------------------------------
+ Brad Daniels                  | "There's only one sweeping generalization   +
+ Biles and Associates          |  which is completely true, and this is it." +
+ These are my views, not B&A's |                              - Me (1994)    +
-------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Per-connection info in DCE RPC server?
  1994-02-02 16:35 Per-connection info in DCE RPC server? Brad Daniels
@ 1994-02-08  7:28 ` Jonathan Chinitz
  1994-02-10 14:41   ` Brad Daniels
  1994-02-09 18:19 ` Rich Salz
  1 sibling, 1 reply; 4+ messages in thread
From: Jonathan Chinitz @ 1994-02-08  7:28 UTC (permalink / raw)


In article <CKLvED.6Co@biles.com> daniels@biles.com (Brad Daniels) writes:
>We have an application which we want to be able to run either with or without
>security services.  In order to simplify implementation, we'd like to keep
>a table of per-user customization information, and look up that information
>inside our server function each time it is called.  That way, we can establish
>user contexts using either the security services or a voluntary non-secure
>identification scheme, then do the lookups the same in either case.  The only
>problem is, we can't determine what would be a good key to use for the lookup.
>Is the binding handle coming in to the server routine unique to each client,
>or is it just the same as the binding handles on the clients' side (all of
>which should be the same)?
>
>How is this situation usually handled?
This is a perfect example for the use of a context handle. The
semantics of a ch are such that each client rpc is assigend a uuid (on
the server side) which is stuffed inside the (opaque to you) ch the
first time that the client calls the server. During this 1st rpc you
load whatever user data you need and setup per user structures. You
have to tie the per-user data to the ch (easy - it is a void *).
Whenever any subsequent rpc comes in for that client (which you will
make with the ch as the binding handle) the runtime assigns the right
per-user stuff to your context handle on the server side.

You need to write a context rundown procedure to tear down the
context.

Ther is more in the DCE App Dev Guide (don't have it in front of me at
the moment).
-- 
-------------------------------------------------------------------------------
Jonathan Chinitz			E-mail: jec@isoft.com
IntelliSoft Corp.			
Distributed Computing Solutions
P.O. Box 2645				Tel.:	508-635-9070
Acton, MA 01720				Fax:	508-635-9210


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Per-connection info in DCE RPC server?
  1994-02-02 16:35 Per-connection info in DCE RPC server? Brad Daniels
  1994-02-08  7:28 ` Jonathan Chinitz
@ 1994-02-09 18:19 ` Rich Salz
  1 sibling, 0 replies; 4+ messages in thread
From: Rich Salz @ 1994-02-09 18:19 UTC (permalink / raw)


In <CKLvED.6Co@biles.com> daniels@biles.com (Brad Daniels) writes:
> we'd like to keep
>a table of per-user customization information, and look up that information
>inside our server function each time it is called.

This is *exactly* the time to use context handles.
	/r$


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Per-connection info in DCE RPC server?
  1994-02-08  7:28 ` Jonathan Chinitz
@ 1994-02-10 14:41   ` Brad Daniels
  0 siblings, 0 replies; 4+ messages in thread
From: Brad Daniels @ 1994-02-10 14:41 UTC (permalink / raw)


Thanks!  I also got this info by e-mail.  I was looking under the wrong
things in the application guide.

- Brad
-------------------------------------------------------------------------------
+ Brad Daniels                  | "There's only one sweeping generalization   +
+ Biles and Associates          |  which is completely true, and this is it." +
+ These are my views, not B&A's |                              - Me (1994)    +
-------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1994-02-10 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-02 16:35 Per-connection info in DCE RPC server? Brad Daniels
1994-02-08  7:28 ` Jonathan Chinitz
1994-02-10 14:41   ` Brad Daniels
1994-02-09 18:19 ` Rich Salz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox