OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
0x001a15a9, 0x3382, 0x1d23, 0xa1, 0x6a, 0x00, 0x00, 0xc0, 0xd4, 0xde, 0x56
};
/* A UUID for a sample object: */
uuid_t sample_object_uuid = {/* 00415371-f29a-1d3d-b8c8-0000c0d4de56 */
0x00415371, 0xf29a, 0x1d3d, 0xb8, 0xc8, 0x00, 0x00, 0xc0, 0xd4, 0xde, 0x56
};
/* The mgmt printstrings could be treated as standard for */
/* a standard mgmt ACL manager... */
sec_acl_printstring_t mgmt_info = {"mgmt", "Management Interface"};
sec_acl_printstring_t mgmt_printstr[] = {
{ "i", "m_inq_if", mgmt_perm_inq_if },
{ "n", "m_inq_pname", mgmt_perm_inq_pname },
{ "s", "m_inq_stats", mgmt_perm_inq_stats },
{ "p", "m_ping", mgmt_perm_ping },
{ "k", "m_kill", mgmt_perm_kill },
{ "c", "control", sec_acl_perm_control },
{ "t", "test", sec_acl_perm_test }
};
sec_acl_printstring_t sample_info = {"sample", "Sample RPC Program"};
sec_acl_printstring_t sample_printstr[] = {
{ "r", "read", sec_acl_perm_read },
{ "w", "write", sec_acl_perm_write },
{ "d", "delete", sec_acl_perm_delete },
{ "c", "control", sec_acl_perm_control },
{ "t", "test", sec_acl_perm_test },
{ "x", "execute", sec_acl_perm_execute }
};
/* These are the two entry point vectors that are explicitly initialized: */
extern rdaclif_v1_0_epv_t dce_acl_v1_0_epv;
3.4.3.15 The server_get_local_principal_id Routine
The server_get_local_principal_id() routine retrieves a principal’s UUID from the
local cell registry.
/******
*
* server_get_local_principal_id -- Get (from the local cell registry) the
* UUID corresponding to a principal name.
*
*
* Called from server_create_acl() and server_acl_mgr_setup().
*
******/
3 32 Tandem Computers Incorporated 124246