OSF DCE Application Development Guide--Introduction and Style Guide
OSF DCE Application Development Guide—Introduction and Style Guide
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling rpc_string_free()"));
rpc_string_free(&uuid_string, status);
if (*status != rpc_s_ok)
{
print_server_error("rpc_string_free()", *status);
}
/************************************************************/
/* For the management ACL we must add a default entry for */
/* the machine principal so dced can manage the server. */
/* Construct the name entry string... */
strcpy((char *)machine_principal, "hosts/");
gethostname((char *)(machine_principal + 6), MAXHOSTNAMELEN + 1);
strcat((char *)machine_principal, "/self");
/* Get the machine 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(machine_principal,
&machine_princ_id,
status);
if (*status != error_status_ok)
{
print_server_error("server_get_local_principal_id()",
*status);
return;
}
/* Add a user entry for the machine principal to the new */
/* ACL... */
permset = ALL_MGMT_PERMS;
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(new_mgmt_acl,
permset,
&machine_princ_id,
status);
if (*status != error_status_ok)
{
print_server_error("dce_acl_obj_add_user_entry()",
*status);
return;
}
A− 48 Tandem Computers Incorporated 124246










