From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,c9d953241fd854b2 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-10-04 19:41:02 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!agate!deep.rsoft.bc.ca!deep2.dial.mindlink.bc.ca!a11389 From: a11389@mindlink.bc.ca (Muiz Motani) Newsgroups: comp.unix.osf.misc Subject: Re: Probing Client's Identity in DCE RPC Date: Tue, 4 Oct 1994 18:41:03 Organization: Intelligent Distribution Message-ID: References: NNTP-Posting-Host: deep2.dial.mindlink.bc.ca X-Newsreader: Trumpet for Windows [Version 1.0 Rev A] In article david@madmax.tower.tandem.com (paulsen_david) writes: >In article L0J@undergrad.math.uwaterloo.ca, ymyong@neumann.uwaterloo.ca (Yuh >Ming YONG) writes: >> >> hi, >> Could someone educate me on how I can uniquely >> capture the client identification in the server's >> stub code? >> >Your server can call rpc_binding_inq_auth_client() which >"Returns authentication and authorization information from >the binding handle for an authenticated client." >> Because the rpc handles are transparently managed >> by the rpc stubs, I can't capture or log the information >> which can be used later to match a rpc event between >> client and server. The purpose is to collect sufficient >> information for debugging purposes. The idea is to >> implement a monitor machanism which probes the "activities" >> between client and server. But I do not know what >> qualify as a client unique i.d which can subsequently be used >> to match its rpc with the associated server's reply. >> It sounds like Yuh Ming is using automatic binding, and of course in that case the manager routines do not have access to the client binding handle. Note that the stubs should as a rule never be modified, and hence the rpc_binding_auth_inq() call should be made in the manager routines. In order to use this method you must be using explicit or implicit bindings. Note also that this does not work if you are using unauthenticated RPC. A principal name will only be returned by this call if the client has done a login and has authenticated it's server binding. _______________________________________________________________________ Muiz Motani (604)274-8894 Intelligent Distribution a11389@mindlink.bc.ca