sec_id_parse_name-Translates a global name into principal and cell names and UUIDs
#include <dce/secidmap.h>
void sec_id_parse_name(
sec_rgy_handle_t context,
sec_rgy_name_t global_name,
sec_rgy_name_t cell_namep,
uuid_t *cell_idp,
sec_rgy_name_t princ_namep,
uuid_t *princ_idp,
error_status_t *status);
Input
- context
An opaque handle bound to a registry server. Use sec_rgy_site_open() to acquire a bound handle.
- global_name
The global (full) name of the principal in sec_rgy_name_t form (seeGlobal PGO Names ).
Input/Output
- cell_namep
The output name of the principal's home cell in sec_rgy_name_t form (seeGlobal PGO Names ).
- cell_idp
A pointer to the UUID of the home cell of the principal whose name is in question.
- princ_namep
The local (with respect to the home cell) name of the principal in sec_rgy_name_t form (seeGlobal PGO Names ).
- princ_idp
A pointer to the UUID of the principal whose name is in question.
Output
- status
A pointer to the completion status. On successful completion, the function returns error_status_ok. Otherwise, it returns an error.
Thesec_id_parse_name() routine translates a global principal name into a cell name and a cell-relative principal name. It also returns the UUIDs associated with the principal and its home cell.A NULL input to any Input/Output parameter suppresses parsing of that parameter.
Permissions Required
Only if princ_idp is requested as output does thesec_id_parse_name() routine require a permission. In this case, the routine requires at least one permission of any kind on the account whose global principal name is to be translated.
- /usr/include/dce/secidmap.idl
The idl file from which dce/secidmap.h was derived.
- error_status_ok
The call was successful.
- sec_id_e_bad_cell_uuid
The cell UUID is not valid.
- sec_id_e_name_too_long
The name is too long for current implementation.
- sec_rgy_object_not_found
The registry server could not find the specified principal.
- sec_rgy_server_unavailable
The DCE Registry Server is unavailable.
Functions:sec_id_gen_name() .Protocols:
rsec_id_parse_name() .
Contents | Next section | Index |