From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,e096a424ab6d3dc6 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-09-21 08:39:35 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!uwm.edu!cs.utexas.edu!uunet!charon.citicorp.com!ibism!gjb From: gjb@fig.citib.com (Greg Brail) Subject: Re: [DCE] unexporting/unregistering servers Message-ID: Sender: news@fig.citib.com Organization: Citibank GCMS/FTN Development References: <27d4tuINNdcq@darkstar.UCSC.EDU> Date: Tue, 21 Sep 1993 15:28:41 GMT In article , Bjorn Hell Larsen 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