以 vSphere Client 用户身份通过“使用 Windows 会话凭据”选项登录到 vCenter Server Appliance 失败,并出现错误: 无法获取用户信息
search cancel

以 vSphere Client 用户身份通过“使用 Windows 会话凭据”选项登录到 vCenter Server Appliance 失败,并出现错误: 无法获取用户信息

book

Article ID: 342778

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:

免责声明: 本文为 Logging in to the vCenter Server Appliance as vSphere Client users using the Use Windows session credentials option fails with the error: Cannot get user info (2050701) 的翻译版本。 尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。 有关最新内容,请参见英文版本。



  • 无法以 vSphere Client 用户身份通过“使用 Windows 会话凭据”选项登录到 vCenter Server Appliance (VCSA)
  • 通过“使用 Windows 会话凭据”选项登录到 vCenter Server Appliance (VCSA) 失败
  • 您会看到以下错误:
出现常规系统错误: 无法获取用户信息 (A General System error occured: Cannot get user info)
  • 在 vCenter Server Appliance (VCSA) 的 vpxd 日志中,您会看到类似以下内容的条目:


    <YYYY-MM-DD>T<time>+02:00 [7F1C10CCC700 error 'GSSAPI' opID=CEAEA705-00000004-2d] Cannot get user info for XXXX\YYYY. Possible NSS configuration problem.
    <YYYY-MM-DD>T<time>+02:00 [7F1C10CCC700 info 'commonvpxLro' opID=CEAEA705-00000004-2d] [VpxLRO] -- FINISH task-internal-9727699 -- -- vim.SessionManager.loginBySSPI
    <YYYY-MM-DD>T<time>+02:00 [7F1C10CCC700 info 'Default' opID=CEAEA705-00000004-2d] [VpxLRO] -- ERROR task-internal-9727699 vim.SessionManager.loginBySSPI: vmodl.fault.SystemError:
    Result:
    (vmodl.fault.SystemError) {
    dynamicType = <unset>,
    faultCause = (vmodl.MethodFault) null,
    reason = "Cannot get user info",
    msg = "",
    }
    Args:</time></time></time>



Environment

VMware vCenter Server Appliance 6.0.x
VMware vCenter Server Appliance 5.1.x
VMware vCenter Server Appliance 5.5.x

Resolution

这是影响 vCenter Server Appliance 5.1、5.5 和 6.0 的已知问题。
要解决此问题,请手动输入用户凭据,而不是通过“使用 Windows 会话凭据”选项。

要解决此问题,请执行以下操作:
  1. 以 root 用户身份登录到 vCenter Server Appliance。

    对于 vCenter Server Appliance 6.0:

    1. 要启用 Bash shell,请运行 shell.set --enabled true 命令。
    2. 运行 shell 命令启动 Bash shell 并登录。

  2. 使用文本编辑器打开 /etc/nsswitch.conf 文件。 有关详细信息,请参见 Editing files on an ESX host using vi or nano (1020302)
  3. 找到 passwd: compat ato 条目并替换为 passwd: compat ato lsass

  4. 通过运行以下命令重新启动 vpxd:

    /etc/init.d/vmware-vpxd restart


Additional Information

要在本文更新时收到提醒,请在“Actions”框中单击 Subscribe to Article。