Ubuntu 20.04 が Windows AD ドメインに参加できない

Ubuntu 20.04 が Windows AD ドメインに参加できない

私は Ubuntu / Linux 初心者です。次のコマンドを使用して、Ubuntu 20.04 マシンを Windows ドメインに参加させようとしています。

sudo realm join -v ad1.example.com

次のエラーが発生して失敗します。

root@computer:~# sudo realm join -v example.org
 * Resolving: _ldap._tcp.example.org
 * Performing LDAP DSE lookup on: 10.0.5.5
 * Successfully discovered: example.org
Password for Administrator:
 * Unconditionally checking packages
 * Resolving required packages
 * LANG=C /usr/sbin/adcli join --verbose --domain example.org --domain-realm EXAMPLE.ORG --domain-controller 10.0.5.5 --login-type user --login-user Administrator --stdin-password
 * Using domain name: example.org
 * Calculated computer account name from fqdn: COMPUTER
 * Using domain realm: example.org
 * Sending NetLogon ping to domain controller: 10.0.5.5
 * Received NetLogon info from: DC01.example.org
 * Wrote out krb5.conf snippet to /var/cache/realmd/adcli-krb5-ZG1Ish/krb5.d/adcli-krb5-conf-dobebh
 ! Couldn't get kerberos ticket for: [email protected]: New password cannot be zero length
adcli: couldn't connect to example.org domain: Couldn't get kerberos ticket for: [email protected]: New password cannot be zero length
 ! Failed to join the domain
realm: Couldn't join realm: Failed to join the domain

ご協力いただければ幸いです。

答え1

試す:

sudo realm join --user=Administrator -v example.org

そして多分:

kinit [email protected]

コマンドの前にjoin

答え2

これは、ドメイン ユーザーが [次回ログイン時にパスワードを変更する必要がある] ボックスにチェックを入れていたためであることが判明しました。

関連情報