Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: gjb@fig.citib.com (Greg Brail)
Subject: Re: [DCE] unexporting/unregistering servers
Date: Tue, 21 Sep 1993 15:28:41 GMT	[thread overview]
Message-ID: <CDpMzv.64C@fig.citib.com> (raw)
In-Reply-To: M05751.93Sep21081807@foxtrot.data.st.statoil.no

In article <M05751.93Sep21081807@foxtrot.data.st.statoil.no>,
Bjorn Hell Larsen <bjla@statoil.no> wrote:

>A question: Will rpc_server_listen return immidiately after the call to
>rpc_mgmt_stop_server_listening, or will it block for executing RPCs to
>finish first?

It'll wait for the RPCs to finish, or at least that's what the manual says.

>Or, more generally: are there any functions available to query the
>state of active RPC executor threads? Or would I have to build in that
>kind of checking by using global counters and the like?

I don't know of any such functions. Unless you missed something, you'd
have to do it yourself.

>But if you are using insecure RPC, all you get to check for
>authorization is the client binding handle. Which severely limits the
>servers possibilities to ascertain *who* out there made the request to
>stop the server.

This is pretty much the choice you have to make. If you use
authenticated RPCs, you can tell who made the RPC. If you don't, you
can't. No one's forcing your server to accept RPCs from
unauthenticated clients. Unless you want anyone to be able to shut
down your server, don't accept them. It seems to be you're better off
using DCE authentication than rolling your own.

Then again, you could also do RPC authorization by parsing the network
address of the client and comparing it to some list of known networks,
thus only accepting RPC requests from hosts on your local network(s).
This is a kluge, but it's also how quite a few Internet daemons do
their authentication, and might not be a bad idea in some situations.

				greg


-- 
Greg Brail ------------------ Citibank -------------------- gjb@fig.citib.com


      reply	other threads:[~1993-09-21 15:28 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-17 19:58 [DCE] unexporting/unregistering servers Scott Cooper
1993-09-17 23:12 ` Thuan Q. Pham
1993-09-18  0:59   ` Nathaniel Mishkin
1993-09-19 15:30     ` Lee Sailer
1993-09-20 16:25     ` Rich Salz
1993-09-21  6:27       ` Bjorn Hell Larsen
1993-09-21 15:54         ` Rich Salz
1993-09-21 21:50         ` Thuan Q. Pham
1993-09-22  6:49           ` Bjorn Hell Larsen
1993-09-23 13:17             ` Nathaniel Mishkin
1993-09-23 18:49               ` Thuan Q. Pham
1993-09-24 14:15                 ` Nathaniel Mishkin
1993-09-24 15:38                   ` Jon Mauney
1993-09-26 18:48                     ` Nathaniel Mishkin
1993-09-22 13:53           ` Rich Salz
1993-09-23  6:41             ` Bjorn Hell Larsen
1993-09-23 14:03               ` Rich Salz
1993-09-23 13:20             ` Nathaniel Mishkin
1993-09-23 18:38               ` Rich Salz
1993-09-24 14:06                 ` Nathaniel Mishkin
1993-09-25 14:35           ` Lee Sailer
1993-09-21 12:25       ` Nathaniel Mishkin
1993-09-20 16:00   ` Greg Brail
1993-09-21  6:18     ` Bjorn Hell Larsen
1993-09-21 15:28       ` Greg Brail [this message]
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