如何将 Ubuntu 添加到 Windows 域?

kar*_*k87 19 likewise active-directory

我已经安装了likewise-open,但是当我将 Ubuntu 机器 (10.10) 添加到域时,出现以下错误:

Leaving AD Domain:   XXX.XX.XXX`                              
Error: Lsass Error [code 0x00080047]                       
1387 (0x56B) ERROR_NO_SUCH_MEMBER - Unknown error
Run Code Online (Sandbox Code Playgroud)

有人可以解决这个问题吗?

同样打开显示我已连接到域。但我如何验证这一点?

同样设置

  • AD 由 Windows 2003 服务器管理。

我尝试了红色的答案,但没有用。

root@karthick:~# domainjoin-cli join XXX.XX.COM xxxxxxx
Joining to AD Domain:   XXX.XX.COM
With Computer DNS Name: karthick.xxx.xx.com

xxxxxxx@XXX.XX.COM's password: 

Error: Lsass Error [code 0x00080047]

31 (0x1F) ERROR_GEN_FAILURE - Unknown error
Run Code Online (Sandbox Code Playgroud)
  • 同样打开的 Gui 已安装,但我无法离开域并重新加入。
  • 请参阅以下屏幕截图:

类似的开放式图形用户界面

我搜索了谷歌,我想出了这个。那是问题吗?或者有人可以帮我调试原因吗?

rom*_*cev 7

我不确定,但您还需要像这样编辑/etc/nsswitch.conf和更改“ host”行:

hosts:    wins files mdns4_minimal [NOTFOUND=return] dns mdns4
Run Code Online (Sandbox Code Playgroud)

至少,它帮助了我


cpr*_*itt 5

您是否检查了 DC 以查看计算机对象是否已存在?如果是 - 删除它 - 然后尝试重新加入。如果您有更多问题,您可以尝试运行下面列出的以下命令以获得更详细的日志记录:

> domainjoin-cli --loglevel verbose
> --log /tmp/domainjoin.log join domain fqdn AD account
Run Code Online (Sandbox Code Playgroud)

  • 因此,域 disney.com 上名为工作站 01 的计算机的 fqdn 将是工作站 01.disney.com (3认同)
  • 完全限定域名 = fqdn (2认同)

kar*_*k87 3

经过大量搜索后,我自己找到了方法。我在 ubuntu 10.10 中加入 Windows 域的步骤如下,

\n
    \n
  • 打开 Ubuntu 软件中心。
  • \n
  • 搜索 \xe2\x80\x9ccentrify\xe2\x80\x9d(无引号)。
  • \n
  • 单击安装。
  • \n
  • 输入您的 sudo 密码并按 Enter。
  • \n
  • 安装完成后,您可以关闭 Ubuntu 软件中心。
  • \n
\n

配置nsswitch文件:

\n
    \n
  • 打开终端并输入以下内容,

    \n

    sudo editor /etc/nsswitch

    \n
  • \n
  • 搜索显示以下内容的行

    \n

    hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

    \n
  • \n
  • 将 # 放在该行前面并添加新行

    \n

    hosts: files dns

    \n
  • \n
  • 这样文件就会看起来像\nnsswitch 文件

    \n
  • \n
  • 另请编辑以下文件,\nsudo editor /etc/centrifydc/group.ignore

    \n
  • \n
\n

您需要将组 \xe2\x80\x9cadmin\xe2\x80\x9d (无引号)添加到此列表。如果您不这样做,您的 sudo 用户将不再拥有 sudo 权限。如果没有 sudo 权限,您的用户将无法安装应用程序或运行任何需要管理权限的内容。配置该文件后,保存它。您现在已准备好加入域。

\n

现在是时候加入域了。在您的终端中输入以下内容,

\n

sudo adjoin -w DOMAIN -u USERNAME

\n

您将得到以下确认信息。

\n
    karthick@karthick:~$ sudo adjoin -w XXX.XX.COM -u Administrator\n    Administrator\'s Active Directory password: \n    Using writable domain controller: xxxxxx.xxx.xx.com\n    Join to domain:XXX.XX.COM, zone:Auto Zone successful\n\n    Centrify DirectControl started.\n    Loading domains and trusts information\n\n\n    You have successfully joined the Active Directory domain: XXX.XX.COM\n    in the Centrify DirectControl zone: Auto Zone\n\n    You may need to restart other services that rely upon PAM and NSS or simply\n    reboot the computer for proper operation.  Failure to do so may result in\n    login problems for AD users.\n
Run Code Online (Sandbox Code Playgroud)\n