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.
|