Updated on 2026-06-27 GMT+08:00

Configuring HetuEngine to Interconnect with External LDAP

Scenarios

This section guides you on how to implement account and password authentication using HetuEngine to connect to an external LDAP server from scratch.

This section applies only to MRS 3.6.0-LTS and later versions.

Constraints

  • This function is supported only when Kerberos authentication is disabled for the cluster (the cluster is in normal mode).
  • HetuEngine only allows configuring the connection to one external LDAP.
  • A user, for example hetu_test, with the same name as the one from the external LDAP has been created on the System > Permission > User page on FusionInsight Manager. The user has been added to the hetuuser user group for submitting SQL requests.

Procedure

  1. Log in to FusionInsight Manager, choose Cluster > Services > HetuEngine, click Configurations and then All Configurations, and refer to Table 1 to configure the parameters.

    Table 1 Parameters for connecting to external LDAP

    Parameter

    Default Value

    Recommended Value

    Description

    Configuration File

    http-server.authentication.type

    NONE

    PASSWORD

    Authentication type of the Coordinator.

    • NONE: No authentication is required
    • Password: LDAP-based password authentication

    coordinator.config.properties

    ldap.allow-insecure

    true

    -

    Whether to use LDAP connections that are not protected by TLS.

    • true: The LDAP connection is made using a non-SSL method.
    • false: The LDAP connection is made using SSL.

    password-authenticator.properties

    ldap.ssl.truststore.password

    -

    -

    Password for the PEM or JKS trust file.

    password-authenticator.properties

    ldap.ssl.truststore.path

    -

    -

    Path for storing the PEM or JKS trust file.

    password-authenticator.properties

    ldap.timeout.connect

    5000ms

    5000ms

    Timeout period for establishing an LDAP connection, in milliseconds. An integer less than or equal to zero represents a timeout value using a network protocol (for example, TCP).

    password-authenticator.properties

    ldap.timeout.read

    5000ms

    5000ms

    Timeout interval for reading data from the LDAP connection, in milliseconds. An integer less than or equal to zero indicates that no read timeout is specified, which is equivalent to waiting for a response until it is received.

    password-authenticator.properties

    ldap.url

    -

    -

    URL of the LDAP server.

    • The scheme of the URL must be ldap:// or ldaps://, for example, ldap://ds.example.com:389 or ldaps://ds.example.com:636.
    • When connecting to an LDAP server that does not enable TLS, set ldap.allow-insecure to true.

    password-authenticator.properties

    ldap.user-bind-pattern

    -

    -

    LDAP user binding string for password authentication. This property must contain the schema ${USER}, which will be replaced with the actual username during password authentication.

    A property can contain multiple schemas, separated by colons (:). Each mode will be checked in sequence until either the login is successful or all logins have failed. Example: ${USER}@corp.example.com: ${USER}@corp.example.co.uk

    password-authenticator.properties

  2. Click Save in the upper left corner. In the dialog box that is displayed, click OK to save the configuration.
  3. Choose Cluster > Services > HetuEngine > More > Restart Service to restart the HetuEngine service to apply the settings.
  4. Restart the HetuEngine compute instance that is running.

    1. Log in to FusionInsight Manager as an administrator, choose Cluster > Services > HetuEngine > Dashboard, and click the link next to HSConsole WebUI to access the HSConsole interface.
    2. Click Compute Instances, select the running HetuEngine instance, click Restart.

  5. Submit an SQL request using the client.

    • On the CLI client, change the value of scheme in the ZooKeeper URL to https. The procedure is as follows:
      1. Change the value of HETUSERVER_URI in the HetuEngine/component_env file in the client installation directory from http to https.
      2. Go to the client installation directory and run the source HetuEngine/component_env command.
      3. Enter hetu-cli --tenant default --user hetu_test --password, press Enter, and type the password of the external LDAP user hetu_test.
    • On the JDBC client, add the following connection parameters:

      SSL=true

      hetuSSL=false

      SSLVerification=NONE

      user=LDAP username, for example, hetu_test

      password=Password of the LDAP user

    • On the Python client, add the following connection parameters:

      SSL=true

      hetuSSL=false

      SSLVerification=NONE

      user=LDAP username, for example, hetu_test

      password=Password of the LDAP user