From: pascal@cnam.cnam.fr (Pascal Meheut)
Subject: Re: HELP: DCE - authenticated RPC
Date: 15 Dec 1994 06:54:25 GMT [thread overview]
Message-ID: <3cop71$f82@sheckley.cnam.fr> (raw)
In-Reply-To: D0t1GD.Crp@Yuri.CC.Uni-Augsburg.DE
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
prev parent reply other threads:[~1994-12-15 6:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-12-14 14:26 HELP: DCE - authenticated RPC Christian Kaindl
1994-12-15 6:54 ` Pascal Meheut [this message]
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