Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Can I program a junction in DCE ?
@ 1994-09-01  5:36 Pascal Meheut
  1994-09-07 17:06 ` Rich Salz
  0 siblings, 1 reply; 2+ messages in thread
From: Pascal Meheut @ 1994-09-01  5:36 UTC (permalink / raw)


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.

I'm using IBM DCE/6000 and I found nothing precise about implementation of
junctions except a few words saying "In the future, it will be possible for
the user to add its own junctions".
I've found nothing nor in the O'Reilly neither in the Lockhart.

Is it possible and how ?

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 ?


Please answer by e-mail.



--


					Pascal Meheut
					pascal@cnam.cnam.fr


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

* Re: Can I program a junction in DCE ?
  1994-09-01  5:36 Can I program a junction in DCE ? Pascal Meheut
@ 1994-09-07 17:06 ` Rich Salz
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Salz @ 1994-09-07 17:06 UTC (permalink / raw)


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


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

end of thread, other threads:[~1994-09-07 17:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-01  5:36 Can I program a junction in DCE ? Pascal Meheut
1994-09-07 17:06 ` Rich Salz

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