sec_key_mgmt_manage_key(3sec)Automatically changes a principal's key before it expires Synopsis
#include <dce/keymgmt.h> Parameters Input
authn_service
This parameter can specify either the local key file or an argument to the get_key_fn key acquisition routine of the rpc_server_register_auth_info routine. A value of NULL specifies that the default key file (/krb/v5srvtab) should be used. A key file name specifies that file should be used as the key file. You must prepend the file's absolute file name with FILE: and the file must have been created with the rgy_edit ktadd command or the sec_key_mgmt_set_key routine. Any other value specifies an argument for the get_key_fn key acquisition routine. See the rpc_server_register_auth_info( ) reference page for more information.
principal_name Output
status
Description This routine queries the DCE Registry to determine the password expiration policy that applies to the named principal. It then idles until a short time before the current key is due to expire and then uses the sec_key_mgmt_gen_rand_key( ) to produce a new random key, updating both the local key store and the DCE Registry. This routine also invokes sec_key_mgmt_garbage_collect( ) as needed. Files
/usr/include/dce/keymgmt.idl 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_key_mgmt_e_key_unavailable
sec_key_mgmt_e_key_unsupported
sec_key_mgmt_e_authn_invalid
sec_key_mgmt_e_unauthorized
sec_rgy_server_unavailable
sec_rgy_object_not_found
error_status_ok
Related Information sec_key_mgmt_gen_rand_key(3sec) sec_key_mgmt_garbage_collect(3sec)
|