root@2004:~# kinit administrator
Password for administrator@TEST.JP:
root@2004:~# net ads join -U administrator
Enter administrator’s password:
Using short domain name — TEST
Joined ‘2004’ to dns domain ‘test.jp’
No DNS domain configured for 2004. Unable to perform DNS Update.
DNS update failed: NT_STATUS_INVALID_PARAMETER
root@2004:~# systemctl restart winbind
root@2004:~# wbinfo -u
guest
administrator
krbtgt
chibi
root@2004:~# wbinfo -n chibi
S-1-5-21-1678940183-1404043644-1380363875-1103 SID_USER (1)
root@2004:~# net ads info
LDAP server: 192.168.1.156
LDAP server name: dc1.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: 水, 05 2月 2020 09:30:10 JST
KDC server: 192.168.1.156
Server time offset: 0
Last machine account password change: 水, 05 2月 2020 09:25:33 JST
root@2004:~# host -4 dc
dc.test.jp has address 192.168.1.45
dc.test.jp has address 192.168.1.39
dc.test.jp has IPv6 address 2400:4052:46e0:b700:1911:c150:a1a4:ec24
dc.test.jp has IPv6 address 2400:4052:46e0:b700:f0b6:ef83:7301:d109
root@2004:~# host -4 dc1
dc1.test.jp has address 192.168.1.156
dc1.test.jp has IPv6 address 2400:4052:46e0:b700:ad7c:4cdc:822b:97d1
root@2004:~# host -4 dc2
dc2.test.jp has address 192.168.1.157
dc2.test.jp has IPv6 address 2400:4052:46e0:b700:98c3:a37e:341c:8589
root@2004:~# smbclient -L localhost -U%
Sharename Type Comment
——— —- ——-
netlogon Disk
sysvol Disk
print$ Disk Printer Drivers
IPC$ IPC IPC Service (Samba 4.11.1-Ubuntu)
SMB1 disabled — no workgroup available
root@2004:~# smbclient //192.168.1.39/netlogon -Uadministrator
Ubuntu20.04 Samba4.11.1 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた