From: m05751@foxtrot.data.st.statoil.no (Bjorn Hell Larsen)
Subject: Re: [DCE] unexporting/unregistering servers
Date: Tue, 21 Sep 1993 06:18:07 GMT [thread overview]
Message-ID: <M05751.93Sep21081807@foxtrot.data.st.statoil.no> (raw)
In-Reply-To: gjb@fig.citib.com's message of Mon, 20 Sep 1993 16:00:20 GMT
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1879 bytes --]
In article <CDntsL.Lvn@fig.citib.com> gjb@fig.citib.com (Greg Brail) writes:
>
> Call that "quitServer" routine that Thuan described after your call to
> rpc_server_listen. In your signal handler, call
> rpc_mgmt_stop_server_listening with a binding handle parameter of
> NULL. This will make the server stop accepting RPCs and make
> rpc_server_listen return.
>
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?
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?
>
> No need to bother if you don't feel like it. If you use
> rpc_mgmt_stop_server_listening in your signal handler like I described
> above, then any client can call it too once it has a binding to your
> server. However, your server must call rpc_mgmt_set_authorization_fn
> to register a callback that DCE will call whenever the client calls a
> management routine. By default, stop_server_listening calls from
> remote clients are rejected. Your callback must decide if the client
> is authorized, then return "TRUE" if it wants the shutdown request to
> be accepted.
>
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 of course true even if you choose to implement the 'stop
server' function as part of your interface, rather than using the RPC
management routines. Of course you could make the client pass a
password, magic cookie, or somesuch -- but then you start implementing
yourself exactly the functions that the authentication services are there
to perform.
Bj�
next prev parent reply other threads:[~1993-09-21 6:18 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 [this message]
1993-09-21 15:28 ` Greg Brail
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