root@1604:~# kinit administrator
Password for administrator@TEST.JP:
root@1604:~# net ads join -U administrator
Enter administrator’s password:
Using short domain name — TEST
Joined ‘1604’ to dns domain ‘test.jp’
No DNS domain configured for 1604. Unable to perform DNS Update.
DNS update failed: NT_STATUS_INVALID_PARAMETER
root@1604:~# systemctl restart winbind
root@1604:~# host -4 dc
dc.test.jp has address 192.168.1.39
dc.test.jp has address 192.168.1.25
dc.test.jp has IPv6 address 2400:4052:46e0:b700:a510:68bc:867b:bf2
dc.test.jp has IPv6 address 2400:4052:46e0:b700:13c:2b9a:e4c9:f5b0
root@1604:~# wbinfo -u
TEST\administrator
TEST\guest
TEST\defaultaccount
TEST\krbtgt
TEST\chibi
root@1604:~# net ads info
LDAP server: 192.168.1.25
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: 土, 11 4月 2020 09:20:32 JST
KDC server: 192.168.1.25
Server time offset: -1
root@1604:~# host -t SRV _ldap._tcp.test.jp
_ldap._tcp.test.jp has SRV record 0 100 389 dc.test.jp.
root@1604:~# host -t SRV _kerberos._udp.test.jp
_kerberos._udp.test.jp has SRV record 0 100 88 dc.test.jp.
root@1604:~# host -t A test.jp
test.jp has address 192.168.1.25
test.jp has address 192.168.1.39
root@1604:~# smbclient -L localhost -U%
Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]
Sharename Type Comment
——— —- ——-
netlogon Disk
sysvol Disk
IPC$ IPC IPC Service (Samba 4.3.11-Ubuntu)
print$ Disk Printer Drivers
Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]
Server Comment
——— ——-
Workgroup Master
——— ——-
WORKGROUP 1604
root@1604:~# smbclient //192.168.1.39/netlogon -Uadministrator
Ubuntu16.04.6 Samba4.3.11 Windows Server 2016 Datacenter Active Directory Domain のメンバーに参加してみた