PreviousNext

sec_rgy_pgo_rename(3sec)

Changes the name of a PGO item in the registry database

Synopsis

#include <dce/pgo.h>

void sec_rgy_pgo_rename(

sec_rgy_handle_t context,
sec_rgy_domain_t name_domain,
sec_rgy_name_t old_name,
sec_rgy_name_t new_name,
error_status_t *status);

Parameters

Input

context
An opaque handle bound to a registry server. Use sec_rgy_site_open( ) to acquire a bound handle.

name_domain
This variable identifies the type of the principal, group, or organization (PGO) item identified by the given name. The valid values are as follows:

sec_rgy_domain_person
The name identifies a principal.

sec_rgy_domain_group
The name identifies a group.

sec_rgy_domain_org
The name identifies an organization.

old_name
A pointer to a sec_rgy_name_t character string containing the existing name of the PGO item.

new_name
A pointer to a sec_rgy_name_t character string containing the new name for the PGO item.

Output

status
A pointer to the completion status. On successful completion, the routine returns error_status_ok. Otherwise, it returns an error.

Description
The sec_rgy_pgo_rename( ) routine renames a PGO item in the registry database.

Permissions Required
If the sec_rgy_pgo_rename( ) routine is performing a rename within a directory, it requires the n (name) permission on the old name of the PGO item. If the routine is performing a move between directories, it requires the following permissions:

· The d (delete) permission on the parent directory that contains the PGO item.

· The n (name) permission on the old name of the PGO item.

· The i (insert) permission on the parent directory in which the PGO item is to be added under the new name.

Files

/usr/include/dce/pgo.idl
The idl file from which dce/pgo.h was derived.

Errors

The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.

sec_rgy_not_authorized
The client program is not authorized to change the name of the specified PGO item.

sec_rgy_object_not_found
The registry server could not find the specified PGO item.

sec_rgy_server_unavailable
The DCE Registry Server is unavailable.

error_status_ok
The call was successful.

Related Information
Functions:

sec_intro(3sec)

sec_rgy_pgo_add(3sec)

sec_rgy_pgo_replace(3sec)