rpc_ns_mgmt_set_attribute(3rpc)Adds an attribute to an RPC server entry in the name service database. Used mainly by server applications; can also be used by management applications. Synopsis
#include <dce/rpc.h> void rpc_ns_mgmt_set_attribute( unsigned32 entry_name_syntax, unsigned_char_t *entry_name, uuid_t *attr_type, void *attr_value, error_status_t *status); Parameters Input
entry_name_syntax To use the syntax specified in the RPC_DEFAULT_ENTRY_SYNTAX environment variable, provide rpc_c_ns_syntax_default.
entry_name
attr_type
attr_val Output
status
Description The rpc_ns_mgmt_set_attribute( ) routine is designed to be a generic routine for adding an attribute to an RPC server entry in the name service database. The routine takes an attribute type and a pointer to the value, and stores the attribute value in the name service database. For DCE 1.1, you use rpc_ns_mgmt_set_attribute( ) in your application server initialization routine to add a code sets attribute to the server's entry in the Cell Directory Service database (which the initialization routine has created with the rpc_ns_binding_export( ) routine). Because CDS stores integer values in little-endian format, the rpc_ns_mgmt_set_attribute( ) routine also encodes the code sets attribute value into an endian-safe format before storing it in the name service database. A management application can call rpc_ns_mgmt_set_attribute( ) to add an attribute to an RPC server entry in the name service database on behalf of an application that does not itself have the necessary name service permissions to add one.
Permissions Required
Return Values 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.
rpc_s_ok
rpc_s_invalid_name_syntax
rpc_s_mgmt_bad_type
rpc_s_no_memory
rpc_s_name_service_unavailable
rpc_s_no_ns_permission
Related Information rpc_ns_mgmt_remove_attribute(3rpc)
|