OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
"Calling dce_acl_obj_init()"));
dce_acl_obj_init(&mgr_type_uuid, acl, status);
if (*status != error_status_ok)
{
print_server_error("dce_acl_obj_init()", *status);
return;
}
/* Get the specified principal’s UUID... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling server_get_local_principal_id()"));
server_get_local_principal_id(user, &u, status);
if (*status != error_status_ok)
{
print_server_error("server_get_local_principal_id()", *status);
return;
}
/* Now add the user ACL entry to the ACL... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling dce_acl_obj_add_user_entry()"));
dce_acl_obj_add_user_entry(acl, perms, &u, status);
if (*status != error_status_ok)
{
print_server_error("dce_acl_obj_add_user_entry()", *status);
return;
}
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug7,
"Exiting server_create_acl()"));
}
/******
*
* server_store_acl -- Store ACL-related data.
*
*
* The data is stored in databases that support a
* name->object_uuid->acl_uuid style of ACL lookup.
*
*
* Called from server_acl_mgr_setup().
*
******/
/****************************************************************************/
/* */
/* There are three databases (this can be seen also in the */
/* server_acl_mgr_close() routine): */
/* */
/* db_acl:ACL (UUID)-indexed: (used to store the ACLs themselves) */
/* db_object:Object (UUID)-indexed: (used to store the object data */
/* itself) */
/* db_name:Name ("Residual")-indexed: (used to store the simple names of */
A 36 Tandem Computers Incorporated 124246