PreviousNext

dce_attr_sch_lookup_by_id(3dce)

Reads a schema entry identified by UUID

Synopsis

#include <dce/dce_attr_base.h>

void dce_attr_sch_lookup_by_id(

dce_attr_sch_handle_t h,

uuid_t *attr_id,

dce_attr_schema_entry_t *schema_entry,

error_status_t *status);

Parameters

Input

h
An opaque handle bound to a schema object. Use dce_attr_sch_bind( ) to acquire the handle.

attr_id
A pointer to a uuid_t that identifies a schema entry.

Output

schema_entry
A dce_attr_schema_entry_t that contains an entry identified by attr_id.

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

Description
The dce_attr_sch_lookup_by_id( ) routine reads a schema entry identified by attr_id. This routine is useful for programmatic access.

After a successful call, free the resources allocated by this routine for the schema_entry parameter by using the sec_attr_util_sch_ent_free_ptrs( ) routine.

Permissions Required
The dce_attr_sch_lookup_by_id( ) routine requires appropriate permissions on the schema object. These permissions are managed by the target server.

Files

/usr/include/dce/dce_attr_base.idl
The idl file from which dce/dce_attr_base.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.

dce_attr_s_bad_binding

error_status_ok

Related Information
Functions: dce_attr_intro(3dce)

dce_attr_sch_lookup_by_name(3dce)

dce_attr_sch_scan(3dce)

sec_attr_util_sch_ent_free_ptrs(3sec)