root@debian:~# kinit administrator
Password for administrator@TEST.JP:
root@debian:~# net ads join -U administrator
Enter administrator’s password:
Using short domain name — TEST
Joined ‘DEBIAN’ to dns domain ‘test.jp’
No DNS domain configured for debian. Unable to perform DNS Update.
DNS update failed: NT_STATUS_INVALID_PARAMETER
root@debian:~# systemctl restart winbind
root@debian:~# wbinfo -u
TEST\administrator
TEST\guest
TEST\defaultaccount
TEST\krbtgt
TEST\chibi
root@debian:~# wbinfo -n chibi
S-1-5-21-3333442807-1512863489-1031104607-1105 SID_USER (1)
root@debian:~# net ads info
LDAP server: 192.168.1.37
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: 火, 21 4月 2020 11:52:04 JST
KDC server: 192.168.1.37
Server time offset: 0
Last machine account password change: 火, 21 4月 2020 11:51:23 JST
root@debian:~# host -4 dc
dc.test.jp has address 192.168.1.37
root@debian:~# host -4 dc1
dc1.test.jp has address 192.168.1.38
root@debian:~# host -t SRV _ldap._tcp.test.jp
_ldap._tcp.test.jp has SRV record 0 100 389 dc.test.jp.
_ldap._tcp.test.jp has SRV record 0 100 389 dc1.test.jp.
root@debian:~# host -t SRV _kerberos._udp.test.jp
_kerberos._udp.test.jp has SRV record 0 100 88 dc1.test.jp.
_kerberos._udp.test.jp has SRV record 0 100 88 dc.test.jp.
root@debian:~# host -t A test.jp
test.jp has address 13.113.45.174
root@debian:~# host -t A dc.test.jp
dc.test.jp has address 192.168.1.37
root@debian:~# host -t A dc1.test.jp
dc1.test.jp has address 192.168.1.38
root@debian:~# smbclient -L localhost -U%
Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.5.16-Debian]
Sharename Type Comment
——— —- ——-
netlogon Disk
sysvol Disk
print$ Disk Printer Drivers
IPC$ IPC IPC Service (Samba 4.5.16-Debian)
Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.5.16-Debian]
Server Comment
——— ——-
DEBIAN Samba 4.5.16-Debian
Workgroup Master
——— ——-
TEST
root@debian:~# smbclient //192.168.1.37/netlogon -Uadministrator
Debian9.1 Samba4.5.16 Windows Server 2016 Datacenter Active Directory Domainののメンバーに参加してみた