Redis Enterprise Software uses a role-based mechanism to enable LDAP authentication and authorization.

When a user attempts to access Redis Enterprise resources using LDAP credentials, the credentials are passed to the LDAP server in a bind request. If the request succeeds, the user’s groups are searched for a group that authorizes access to the original resource.

Role-based LDAP lets you authorize cluster management users (previously known as external users) and database users. As with any access control role, you can define the level of access authorized by the role.

Set up LDAP connection

To configure and enable LDAP from the Cluster Manager UI:

  1. Go to Access Control > LDAP > Configuration.

  2. Select + Create.

  3. In Set LDAP, configure LDAP server settings, bind credentials, authentication query, and authorization query.

    The LDAP configuration screen in the Cluster Manager UI
  4. Select Save & Enable.

LDAP server settings

The LDAP server settings define the communication settings used for LDAP authentication and authorization. These include:

SettingDescription
Protocol typeUnderlying communication protocol; must be LDAP, LDAPS, or STARTTLS
HostURL of the LDAP server
PortLDAP server port number
Trusted CA certificate(LDAPS or STARTTLS protocols only) Certificate for the trusted certificate authority (CA)

When defining multiple LDAP hosts, the organization tree structure must be identical for all hosts.

Bind credentials

These settings define the credentials for the bind query:

SettingDescription
Distinguished NameExample: cd=admin,dc=example,dc=org
PasswordExample: admin1
Client certificate authentication(LDAPS or STARTTLS protocols only) Place checkmark to enable
Client public key(LDAPS or STARTTLS protocols only) The client public key for authentication
Client private key(LDAPS or STARTTLS protocols only) The client private key for authentication

Authentication query

These settings define the authentication query:

SettingDescription
Search user byEither Template or Query
Template(template search) Example: cn=%u,ou=dev,dc=example,dc=com
Base(query search) Example: ou=dev,dc=example,dc=com
Filter(query search) Example: (cn=%u)
Scope(query search) Must be baseObject, singleLevel, or wholeSubtree

In this example, %u is replaced by the username attempting to access the Redis Enterprise resource.

Authorization query

These settings define the group authorization query:

SettingDescription
Search groups byEither Attribute or Query
Attribute(attribute search) Example: memberOf (case-sensitive)
Base(query search) Example: ou=groups,dc=example,dc=com
Filter(query search) Example: (members=%D)
Scope(query search) Must be baseObject, singleLevel, or wholeSubtree

In this example, %D is replaced by the Distinguished Name of the user attempting to access the Redis Enterprise resource.

Authentication timeout

The Authentication timeout setting determines the connection timeout to the LDAP server during user authentication.

By default, the timeout is 5 seconds, which is recommended for most cases.

However, if you enable multi-factor authentication (MFA) for your LDAP server, you might need to increase the timeout to provide enough time for MFA verification. You can set it to any integer in the range of 5-60 seconds.

More info