我想用来realmd
从Ubuntu 14.04 LTS加入Active Directory域。
要做到这一点我刚安装realmd
和一些依赖使用此命令:aptitude install realmd sssd sssd-tools samba-common krb5-user
。
安装后,我尝试使用命令realm --verbose join ad.example.com -U Administrator
输入管理员密码的域来加入我的域,但是它们崩溃并显示以下输出:
* Resolving: _ldap._tcp.ad.example.com
* Performing LDAP DSE lookup on: 10.7.0.2
* Successfully discovered: ad.example.com
Password for Administrator:
* Unconditionally checking packages
* Resolving required packages
* Installing necessary packages: samba-common-bin
* LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.QARGGX -U Administrator ads join ad.example.com
Enter Administrator's password:DNS update failed: NT_STATUS_INVALID_PARAMETER
Using short domain name -- AD-EXAMPLE
Joined 'REALMD-TEST' to dns domain 'ad.example.com'
No DNS domain configured for realmd-test. Unable to perform DNS Update.
* LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.QARGGX -U Administrator ads keytab create
Enter Administrator's password:
realm: Couldn't join realm: Message did not receive a reply (timeout by message bus)
在这些错误realmd
甚至无效之后,发出以下任何命令realmd
:
realm: Couldn't connect to realm service: Error calling StartServiceByName for
org.freedesktop.realmd: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildSignaled:
Process /usr/lib/dbus-1.0/dbus-daemon-launch-helper received signal 11
该文件/etc/sssd/sssd.conf
似乎已正确创建并/etc/nsswitch.conf
进行了相应的修改。但这还不足以成功加入域。