skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_cc_store_cred  Store a credential in the credentials cache krb5_cc_store_cred Store a credential in the credentials cache
go to next page: krb5_cksumtype_to_string  Convert checksum type to string representationkrb5_cksumtype_to_string Convert checksum type to string representation
end of book navigation links

krb5_change_password -- Change an existing password 



C Prototype 

krb5_error_code krb5_change_password (
        krb5_context    context,
        krb5_creds      *creds,
        char            *newpw,
        int             *result_code,
        krb5_data       *result_code_string,
        krb5_data       *result_string );

Arguments 

context
(input/output)
 The context structure.
creds (input)  The Kerberos credentials.
newpw (input)  The new password.
result_code (output) A numeric error code.
result_code_string (output)
 The string equivalent of the result_code.
result_string (output) The change password response from the KDC.

Description 

This routine changes the password for an existing Kerberos account.

Return Values 

This routine returns one of the following KRB5 status codes:

0
Successful completion.
KRB5KRB_AP_ERR_MODIFIED
Message stream modified.
KRB5KDC_ERR_BAD_PVNO
Requested protocol version not supported.
ENOMEM
Insufficient memory.
SOCKET_ERRNO
Error on socket.
ETIMEDOUT
Connection timed out.
EHOSTUNREACH
No route to host.


go to previous page: krb5_cc_store_cred  Store a credential in the credentials cache krb5_cc_store_cred Store a credential in the credentials cache
go to next page: krb5_cksumtype_to_string  Convert checksum type to string representationkrb5_cksumtype_to_string Convert checksum type to string representation