迁移到基于角色的 LDAP

介绍如何将现有的基于集群的 LDAP 部署迁移到基于角色的 LDAP。

Redis 企业软件

Redis 企业软件通过基于角色的机制支持 LDAP,该机制在 v6.0.20 中首次引入。

早期版本的 Redis Enterprise Software 支持基于集群的机制;但是,该机制在 v6.2.12 中删除了。

如果您使用基于集群的机制启用 LDAP 身份验证,则需要在升级到 Redis Enterprise Software v6.2.12 或更高版本之前迁移到基于角色的机制。

迁移清单

此清单涵盖基本流程:

  1. 确定客户端上每个应用程序的帐户。

  2. 在服务器上创建或标识负责 LDAP 身份验证和授权的 LDAP 用户帐户。

  3. 创建或标识包含应用程序团队成员的 LDAP 组。

  4. 验证或配置 Redis Enterprise ACL。

  5. 配置每个数据库 ACL。

  6. 从 Redis Enterprise 中删除早期的“外部”(LDAP) 用户。

  7. (推荐)更新集群配置以替换基于集群的配置文件。

    您可以使用rladmin要更新集群配置:

    $ touch /tmp/saslauthd_empty.conf
    $ rladmin cluster config saslauthd_ldap_conf \
         /tmp/saslauthd_empty.conf
    

    Here, a blank file replaces the earlier configuration.

  8. Use Access Control > LDAP > Configuration to enable role-based LDAP.

  9. Map your LDAP groups to access control roles.

  10. Test application connectivity using the LDAP credentials of an app team member.

  11. (Recommended) Turn off default access for the database to avoid anonymous client connections.

Because deployments and requirements vary, you’ll likely need to adjust these guidelines.

Test LDAP access

To test your LDAP integration, you can:

  • Connect with redis-cli and use the AUTH command to test LDAP username/password credentials.

  • Sign in to the Cluster Manager UI using LDAP credentials authorized for admin access.

  • Use Redis Insight to access a database using authorized LDAP credentials.

  • Use the REST API to connect using authorized LDAP credentials.

More info

RATE THIS PAGE
Back to top ↑