OSF DCE Application Development Guide--Introduction and Style Guide
OSF DCE Application Development Guide—Introduction and Style Guide
dce_acl_is_client_authorized(
binding, /* Client’s binding handle. */
&sample_acl_mgr_uuid, /* ACL manager type UUID. */
&sample_acl_uuid, /* The ACL UUID. */
NULL, /* Pointer to owner’s UUID. */
NULL, /* Pointer to owner’s group’s UUID. */
sec_acl_perm_read, /* The desired privileges. */
&authorized, /* Will be TRUE or FALSE on return. */
remote_status);
if (*remote_status != error_status_ok)
{
print_manager_error("dce_acl_is_client_authorized()",
*remote_status);
return;
}
if (authorized)
{
DCE_SVC_DEBUG((smp_svc_handle,
smp_s_manager,
svc_c_debug8,
"Call authorized"));
/* HERE’S WHERE WE SHOULD ACTUALLY DO SOMETHING! */
*status = error_status_ok;
}
else
{
DCE_SVC_DEBUG((smp_svc_handle,
smp_s_manager,
svc_c_debug8,
"Call not authorized"));
/* Return no permissions status to client */
*status = no_permissions;
}
DCE_SVC_DEBUG((smp_svc_handle,
smp_s_manager,
svc_c_debug6,
"Successfully exiting sample_call()"));
}
7 −12 Tandem Computers Incorporated 124246