Skip to main content
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

为Active Directory配置审核客户端

贡献者

对 StorageGRID 部署中要从中检索审核消息的每个管理节点执行此操作步骤 。

您需要的内容
  • 您必须具有 Passwords.txt 具有root/admin帐户密码的文件(可在上述软件包中找到)。

  • 您必须具有CIFS Active Directory用户名和密码。

  • 您必须具有 Configuration.txt 文件(在上述软件包中提供)。

备注 已弃用通过 CIFS/Samba 进行审核导出,并将在未来的 StorageGRID 版本中删除。
步骤
  1. 登录到主管理节点:

    1. 输入以下命令: ssh admin@primary_Admin_Node_IP

    2. 输入中列出的密码 Passwords.txt 文件

    3. 输入以下命令切换到root: su -

    4. 输入中列出的密码 Passwords.txt 文件

      以root用户身份登录后、提示符将从变为 $ to #

  2. 确认所有服务的状态均为正在运行或已验证: storagegrid-status

    如果所有服务均未运行或未验证,请先解决问题,然后再继续。

  3. 返回命令行,按 * 。 Ctrl+* 。 c* 。

  4. 启动CIFS配置实用程序: config_cifs.rb

    ---------------------------------------------------------------------
    | Shares                 | Authentication         | Config          |
    ---------------------------------------------------------------------
    | add-audit-share        | set-authentication     | validate-config |
    | enable-disable-share   | set-netbios-name       | help            |
    | add-user-to-share      | join-domain            | exit            |
    | remove-user-from-share | add-password-server    |                 |
    | modify-group           | remove-password-server |                 |
    |                        | add-wins-server        |                 |
    |                        | remove-wins-server     |                 |
    ---------------------------------------------------------------------
  5. 为Active Directory设置身份验证: set-authentication

    在大多数部署中,您必须在添加审核客户端之前设置身份验证。如果已设置身份验证,则会显示一条建议消息。如果已设置身份验证,请转至下一步。

    1. 当系统提示您安装工作组或Active Directory时: ad

    2. 出现提示时,输入 AD 域的名称(短域名)。

    3. 出现提示时,输入域控制器的 IP 地址或 DNS 主机名。

    4. 出现提示时,输入完整的域域名。

      使用大写字母。

    5. 当系统提示您启用 winbind 支持时,键入 * 。

      winbind 用于解析 AD 服务器中的用户和组信息。

    6. 出现提示时,输入 NetBIOS 名称。

    7. 出现提示时,按 * 输入 * 。

      此时将显示 CIFS 配置实用程序。

  6. 加入域:

    1. 如果尚未启动、请启动CIFS配置实用程序: config_cifs.rb

    2. 加入域: join-domain

    3. 系统会提示您测试管理节点当前是否为有效的域成员。如果此管理节点先前未加入此域、请输入: no

    4. 出现提示时、请提供管理员的用户名: administrator_username

      其中: administrator_username 是CIFS Active Directory用户名、而不是StorageGRID 用户名。

    5. 出现提示时、请提供管理员密码: administrator_password

      administrator_password 是CIFS Active Directory用户名、而不是StorageGRID 密码。

    6. 出现提示时,按 * 输入 * 。

      此时将显示 CIFS 配置实用程序。

  7. 验证您是否已正确加入域:

    1. 加入域: join-domain

    2. 当系统提示测试服务器当前是否为域的有效成员时、输入: y

      如果您收到消息 "`join is OK ,` " you have successfully joined the domain.如果未收到此响应,请尝试设置身份验证并重新加入域。

    3. 出现提示时,按 * 输入 * 。

      此时将显示 CIFS 配置实用程序。

  8. 添加审核客户端: add-audit-share

    1. 当系统提示您添加用户或组时、输入: user

    2. 当系统提示您输入审核用户名时,请输入审核用户名。

    3. 出现提示时,按 * 输入 * 。

      此时将显示 CIFS 配置实用程序。

  9. 如果允许多个用户或组访问审核共享、请添加其他用户: add-user-to-share

    此时将显示已启用共享的编号列表。

    1. 输入审核导出共享的编号。

    2. 当系统提示您添加用户或组时、输入: group

      系统将提示您输入审核组名称。

    3. 当系统提示您输入审核组名称时,输入审核用户组的名称。

    4. 出现提示时,按 * 输入 * 。

      此时将显示 CIFS 配置实用程序。

    5. 对有权访问审核共享的每个其他用户或组重复此步骤。

  10. (可选)验证您的配置: validate-config

    此时将检查并显示这些服务。您可以安全地忽略以下消息:

    • 找不到包含文件 /etc/samba/includes/cifs-interfaces.inc

    • 找不到包含文件 /etc/samba/includes/cifs-filesystem.inc

    • 找不到包含文件 /etc/samba/includes/cifs-interfaces.inc

    • 找不到包含文件 /etc/samba/includes/cifs-custom-config.inc

    • 找不到包含文件 /etc/samba/includes/cifs-shares.inc

    • rlimit_max :将 rlimit_max ( 1024 )增加到最小 Windows 限制( 16384 )

      重要说明 请勿将设置 "security=ads" 与 "password server" 参数结合使用。(默认情况下, Samba 会自动发现要联系的正确 DC )。
      1. 出现提示时,按 * 输入 * 以显示审核客户端配置。

      2. 出现提示时,按 * 输入 * 。

        此时将显示 CIFS 配置实用程序。

  11. 关闭CIFS配置实用程序: exit

  12. 如果 StorageGRID 部署是单个站点,请转至下一步。

    或者,如果 StorageGRID 部署包括其他站点的管理节点,则根据需要启用这些审核共享:

    1. 远程登录到站点的管理节点:

      1. 输入以下命令: ssh admin@grid_node_IP

      2. 输入中列出的密码 Passwords.txt 文件

      3. 输入以下命令切换到root: su -

      4. 输入中列出的密码 Passwords.txt 文件

    2. 重复上述步骤为每个管理节点配置审核共享。

    3. 关闭远程安全Shell登录到管理节点: exit

  13. 从命令Shell中注销: exit

相关信息

"升级软件"