From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,9a172976470bdbd9 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-12-14 22:54:25 PST Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!psuvax1!uwm.edu!math.ohio-state.edu!jussieu.fr!cnam!pascal From: pascal@cnam.cnam.fr (Pascal Meheut) Newsgroups: comp.unix.osf.misc Subject: Re: HELP: DCE - authenticated RPC Date: 15 Dec 1994 06:54:25 GMT Organization: Conservatoire National des Arts et Metiers, Paris, France Message-ID: <3cop71$f82@sheckley.cnam.fr> References: NNTP-Posting-Host: asimov.cnam.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit kaindl@aixcip02.Math.Uni-Augsburg.DE (Christian Kaindl) writes: >I am trying to develop a DCE application, using authenticated RPC. >To get some experience, I built an almost identical copy of the >example application, mentioned by Harold W. Lockhart in chapter 11 of his > "OSF DCE Guide to developping distributed applications". >When I call rpc_binding_set_auth_info() within my "explicit" client with >a protection level argument other than rpc_c_protect_level_none, my >client is dumping with signal SIGIOT, as soon as the client tries to make >the RPC. More precisely: > - a call to rpc_mgmt_is_server_listening() right b e f o r e the call to > rpc_binding_set_auth_info() returns a status of rpc_s_ok. > - a call to rpc_mgmt_is_server_listening() right a f t e r the call to > rpc_binding_set_auth_info() returns a status of rpc_s_comm_failure. > ( Communications failure ) >How can I force my application to make "secure" RPCs? >We are running DCE on IBM RS/6000 machines under AIX 3.2.5. Quit strange, I've make it work easily on a RS/6000. Here is my code made from Lockhart and Shirley, Hu and Magid books : static void bind_to(char *name, rpc_binding_handle_t *binding) { unsigned32 status; rpc_ns_handle_t import_context; unsigned_char_t *principal_name; boolean32 listening; rpc_ns_binding_import_begin(rpc_c_ns_syntax_default, (unsigned_char_t *) name, execute_v1_0_c_ifspec, NULL, &import_context, &status); check_status(status,"Can't begin import\n",ABORT); listening=false; do { rpc_ns_binding_import_next(import_context,binding,&status); check_status(status,"Can't import binding\n",ABORT); rpc_ep_resolve_binding(*binding,execute_v1_0_c_ifspec,&status); check_status(status,"Can't resolve binding\n",RESUME); if(status==error_status_ok) { listening=rpc_mgmt_is_server_listening(*binding,&status); check_status(status,"Can't resolve binding\n",RESUME); if(status!=error_status_ok) listening=false; } } while(!listening); rpc_ns_binding_import_done(&import_context,&status); check_status(status,"Can't terminate import binding\n",ABORT); rpc_mgmt_inq_server_princ_name(*binding, rpc_c_authn_dce_secret, &principal_name, &status); check_status(status,"Can't get server principal name\n",ABORT); rpc_binding_set_auth_info(*binding, principal_name, rpc_c_protect_level_pkt_integ, rpc_c_authn_dce_secret, NULL, rpc_c_authz_dce, &status); check_status(status,"Can't set authentification informations\n",ABORT); -- Pascal Meheut pascal@cnam.cnam.fr