Changing the user password on specified serverΒΆ

change_kfserver_password()

Change user password on specified server


SYNTAX

change_kfserver_password(server, new_password)

Changes the password for the currently authenticated user on the server specified. This function allows a user who has logged on to kfserver successfully to change their own password whenever they wish.

server

A text string naming the server, optionally ending with a colon.

new_password

A text string, supplied in unencrypted form.

The function returns zero if successful, otherwise a negative value.


EXAMPLE

if (change_kfserver_password("Myserver:", tmp.Password)!= 0){
     error "Attempt to change server password failed"
}

RELATED TOPICS

Servers

Server security features

Server security database

Server security functions