Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: rsalz@osf.org (Rich Salz)
Subject: Re: Can I program a junction in DCE ?
Date: 7 Sep 1994 17:06:41 GMT	[thread overview]
Message-ID: <34krv1$3ni@paperboy.osf.org> (raw)
In-Reply-To: 343p8j$5b4@sheckley.cnam.fr

In <343p8j$5b4@sheckley.cnam.fr> pascal@cnam.cnam.fr (Pascal Meheut) writes:
>I would like to implement a server wich in fact will only be an ACL manager
>for a big tree of objects (it's an  authorization server).
>So instead of exporting all this objects in the CDS, with uuids and bindings,
>I would like to implement it as a junction.

Sure.  The documentation isn't clear, but it can be done without too much
trouble.

The word "junction" is a bit overloaded.  You're not implementing a full
junction, but are instead using a junction-like facility provided by
the sec_acl_bind() routine.  (In my view, a full junction meant you could
do cdscp show and list operations. :-)

What you want to implement is called "extended naming."  It is actually
fairly easy to do.

Have your server export itself into the namespace, say /.:/authen/master.
Then if you do acl_edit on anything that starts with that name, the
rest of the name will be passed into your server's rdacl routines as
the "component_name" field.  That is, the server does this:
	rpc_ns_binding_export(rpc_c_ns_syntax_dce,
	    "/.:/authen/master", myserver_v1_0_s_ifspec, my_bindings,
	    NULL, &status);
Then if you do
	acl_edit /.:/authen/master/admin/rsalz
Your implementation of rdacl (rdacl_lookup, etc) will get "admin/rsalz"
as the value of the component_name parameter.

>By the way, just another question : how can I know if my process runs with
>authentification ticket (id, a dce_login has been made) ? Is the KRB5CCNAME
>environnment variable a good indicator or is there a more accurate way ?

Looking at the environment is not the best way since it's not portable
and depends on an undocumented implementation detail.  I think calling
sec_login_get_current_context and catching the "no current context" failure
is better.

>Please answer by e-mail.

Posted because you didn't say you would post a summary.
	/r$, DCE 1.1 Tech Lead


      reply	other threads:[~1994-09-07 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-01  5:36 Can I program a junction in DCE ? Pascal Meheut
1994-09-07 17:06 ` Rich Salz [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