54.2. Editing Authentication Rules #

PPEM provides the following ways of editing authentication rules:

  • Adding a line to the pg_hba.conf configuration file

  • Switching to the edit mode of the pg_hba.conf configuration file

54.2.1. Adding a Line to the Configuration File #

  1. In the navigation panel, go to InfrastructureInstances.

  2. Click the name of the instance.

  3. In the navigation panel, go to Authentication.

  4. In the top-right corner of the page, click Add line.

  5. Specify parameters of the new line in the pg_hba.conf configuration file (parameters marked with an asterisk are required):

    • Type: The type of the connection.

    • Users (search): The names of users and groups to which the authentication rule will apply.

    • Users (will be saved to file): The names of users and groups to which the authentication rule will be applied.

      You can specify a comma-separated list of users.

    • Databases (search): The names of databases to which the authentication rule will apply.

    • Databases (will be saved to file): The names of databases to which the authentication rule will apply.

      You can specify a comma-separated list of databases.

    • Address: The network address(es) of the client machine to which the authentication rule will apply.

      This parameter is available only if you select any value except local from Type.

    • IP-mask: The mask of the IP address.

      This parameter is available only if you select any value except local from Type.

    • Method: The authentication method.

    • Options: The authentication method parameters in the name=value format.

  6. Click Add.

  7. (Optional) To reset all added but not yet saved lines, in the bottom-right corner of the page, click Reset.

  8. In the bottom-right corner of the page, click Save.

54.2.2. Configuration File Editing Mode #

  1. In the navigation panel, go to InfrastructureInstances.

  2. Click the name of the instance.

  3. In the navigation panel, go to Authentication.

  4. In the top-right corner of the page, turn on Edit mode.

  5. Perform one of the following actions with the line:

    • To move the line one position up, click Move up next to it.

    • To move the line one position down, click Move down next to it.

    • To delete the line, click Delete next to it.

  6. (Optional) To reset all edited but not yet saved lines, in the bottom-right corner of the page, click Reset.

  7. In the bottom-right corner of the page, click Save.

Note

When rules are saved, the instance receives a configuration reload signal. In this case, all configuration files of the instance are reread.