HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_change_password — Change an existing password

  Table of Contents

  Glossary

  Index

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_PVNORequested protocol version not supported.
ENOMEM

Insufficient memory.

SOCKET_ERRNOError on socket.

ETIMEDOUT

Connection timed out.
EHOSTUNREACHNo route to host.