Previous Topic: ExampleNext Topic: Model Information


How EApiPasswordValidate API Validates Password

The PasswordValidate entry point in the Encyclopedia API provides access to the password validation service for customer written applications that use the Encyclopedia API. This entry point accepts a user name and a password in plain text and returns an indication of whether the given password is the password on file for the given user. It also provides other diagnostic return codes to identify faults detected during the validation process.

This procedure does not use a direct database connection to the Coordination database. Instead, it sends a message to the Coordination database server, much like the CSE clients. The reply contains a return value that indicates whether the password is valid for the given user name.

Note: It is not possible to change the password through the Encyclopedia API.

The following tasks are performed by the EApiPasswordValidate API for the validation of the password:

Follow these steps:

  1. Connect to the message dispatcher and registers with it.
  2. Insert the userid and password into a packet and send the packet to the coordination server for validation.
  3. The Coordination server validates the password and returns success, if the password matches the one with that exists in the database otherwise returns the corresponding error message.
  4. The reply is received by the Encyclopedia API and control is returned to the calling program with the appropriate return code.