Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* HELP: DCE - authenticated RPC
@ 1994-12-14 14:26 Christian Kaindl
  1994-12-15  6:54 ` Pascal Meheut
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Kaindl @ 1994-12-14 14:26 UTC (permalink / raw)


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.

-- Christian
________________________________________________________
  Christian Kaindl
  Kaindl@Mathpool.Uni-Augsburg.DE
________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: HELP: DCE - authenticated RPC
  1994-12-14 14:26 HELP: DCE - authenticated RPC Christian Kaindl
@ 1994-12-15  6:54 ` Pascal Meheut
  0 siblings, 0 replies; 2+ messages in thread
From: Pascal Meheut @ 1994-12-15  6:54 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-12-15  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-12-14 14:26 HELP: DCE - authenticated RPC Christian Kaindl
1994-12-15  6:54 ` Pascal Meheut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox