Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: jec@bubba.osf.org (Jonathan Chinitz)
Subject: Re: Per-connection info in DCE RPC server?
Date: 8 Feb 1994 07:28:58 GMT	[thread overview]
Message-ID: <2j7evq$agg@paperboy.osf.org> (raw)
In-Reply-To: CKLvED.6Co@biles.com

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


  reply	other threads:[~1994-02-08  7:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-02 16:35 Per-connection info in DCE RPC server? Brad Daniels
1994-02-08  7:28 ` Jonathan Chinitz [this message]
1994-02-10 14:41   ` Brad Daniels
1994-02-09 18:19 ` Rich Salz
read-only archive

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