sec_rgy_pgo_replace-Replaces the data in an existing PGO item
#include <dce/pgo.h> void sec_rgy_pgo_replace( sec_rgy_handle_t context, sec_rgy_domain_t name_domain, sec_rgy_name_t pgo_name, sec_rgy_pgo_item_t *pgo_item, error_status_t *status);
An opaque handle bound to a registry server. Use sec_rgy_site_open() to acquire a bound handle.
This variable identifies the type of the principal, group, or organization (PGO) item identified by the given name. The valid values are as follows:
The name identifies a principal.
The name identifies a group.
The name identifies an organization.
A character string (type sec_rgy_name_t) containing the name of the principal, group, or organization whose data is to be replaced.
A pointer to a sec_rgy_pgo_item_t structure containing the new data for the PGO item. The data in this structure includes the PGO item's name, UUID, UNIX number (if any), and administrative data, such as whether the item, if a principal, may have a concurrent group set.
A pointer to the completion status. On successful completion, the routine returns error_status_ok. Otherwise, it returns an error.
The sec_rgy_pgo_replace() routine replaces the data associated with a PGO item in the registry database.
The UNIX ID and UUID of a PGO item cannot be replaced. To change the UNIX ID or UUID, the existing PGO item must be deleted and a new PGO item added in its place. The one exception to this rule is that the UNIX ID can be replaced in the PGO item for a cell principal. The reason for this exception is that the UUID for a cell principal does not contain an embedded UNIX ID.
Permissions RequiredThe sec_rgy_pgo_replace() routine requires at least one of the following permissions:
- The m (mgmt_info) permission on the PGO item, if quota or flags is being set.
- The f (fullname) permission on the PGO item, if fullname is being set.
The idl file from which dce/pgo.h was derived.
The call was successful.
The client program is not authorized to replace the specified PGO item.
No PGO item was found with the given name.
The DCE Registry Server is unavailable.
The UNIX number of the PGO item was changed.
sec_rgy_pgo_add(), sec_rgy_pgo_delete(), sec_rgy_pgo_rename().