Sun Java System Calendar Server 6 2005Q4 Developer's Guide

Method: ChangePassword

Purpose

Changes the password for the specified user.

Syntax

PRUint32 Init (char* aUser, 
               char* aOldPassword, 
               char* aNewPassword, 
               PRInt32 *aReturnCode)=0;

Parameters

The method has the following four parameters:

aUser

The user’s name. 

aOldPassword

The old password. 

aNewPassword

The new password. 

aReturnCode

On return, contains a constant that determines whether the server should continue with the default authentication procedure. 

One of the following constants: 

  • NS_CONTINUE_DEFAULT_PROCESSING

  • NS_OVERRIDE_DEFAULT_PROCESSING

Returns

On success, NS_AUTHENTICATION_CHANGEPASSWORD_SUCCESS.

On failure, NS_AUTHENTICATION_CHANGEPASSWORD_FAILURE.

Description

Changes the password of the specified user.