From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111308,2def6909c9097ed9 X-Google-Attributes: gid111308,public X-Google-Thread: f678f,2def6909c9097ed9 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-09-07 17:17:13 PST Path: nntp.gmd.de!xlink.net!news.dfn.de!darwin.sura.net!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!paperboy.osf.org!rsalz From: rsalz@osf.org (Rich Salz) Newsgroups: comp.client-server,comp.unix.osf.misc Subject: Re: Can I program a junction in DCE ? Date: 7 Sep 1994 17:06:41 GMT Organization: Open Software Foundation Message-ID: <34krv1$3ni@paperboy.osf.org> References: <343p8j$5b4@sheckley.cnam.fr> NNTP-Posting-Host: sulphur.osf.org Keywords: DCE, junction Xref: nntp.gmd.de comp.client-server:5520 comp.unix.osf.misc:1719 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