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\guest TEST\defaultaccount TEST\krbtgt TEST\administrator TEST\chibi root@debian:~# wbinfo -n chibi S-1-5-21-2467789576-484327839-526637627-1103 SID_USER (1) root@debian:~# net ads info LDAP server: 192.168.1.15 LDAP server name: dc1.test.jp Realm: TEST.JP Bind Path: dc=TEST,dc=JP LDAP port: 389 Server time: 火, 15 5月 2018 07:33:07 JST KDC server: 192.168.1.15 Server time offset: -3 Last machine account password change: 火, 15 5月 2018 07:32:42 JST root@debian:~# host -4 dc dc.test.jp has address 192.168.1.10 dc.test.jp has address 192.168.1.165 dc.test.jp has IPv6 address 2400:7800:47e0:1700:706d:6e99:e275:49b2 dc.test.jp has IPv6 address 2400:7800:47e0:1700:2059:1072:55e9:9d1e root@debian:~# host -4 dc1 dc1.test.jp has address 192.168.1.15 dc1.test.jp has IPv6 address 2400:7800:47e0:1700:dd65:440:f963:bb1e root@debian:~# host -4 dc2 dc2.test.jp has address 192.168.1.16 dc2.test.jp has IPv6 address 2400:7800:47e0:1700:28a0:2f96:885c:b6ef root@debian:~# host -t SRV _ldap._tcp.test.jp _ldap._tcp.test.jp has SRV record 0 100 389 dc2.test.jp. _ldap._tcp.test.jp has SRV record 0 100 389 dc1.test.jp. _ldap._tcp.test.jp has SRV record 0 100 389 dc.test.jp. root@debian:~# host -t SRV _kerberos._udp.test.jp _kerberos._udp.test.jp has SRV record 0 100 88 dc.test.jp. _kerberos._udp.test.jp has SRV record 0 100 88 dc2.test.jp. _kerberos._udp.test.jp has SRV record 0 100 88 dc1.test.jp. root@debian:~# host -t A test.jp test.jp has address 192.168.1.15 test.jp has address 192.168.1.16 test.jp has address 192.168.1.165 test.jp has address 192.168.1.10 root@debian:~# smbclient //192.168.1.10/netlogon -Uadministrator WARNING: The "syslog" option is deprecated Enter administrator's password: Domain=[TEST] OS=[Windows Server 2016 Datacenter 14393] Server=[Windows Server 2016 Datacenter 6.3] smb: \> ls . D 0 Mon May 7 10:13:08 2018 .. D 0 Mon May 7 10:13:08 2018 62369535 blocks of size 4096. 43968709 blocks available smb: \> exit root@debian:~# smbclient //192.168.1.10/sysvol -Uadministrator WARNING: The "syslog" option is deprecated Enter administrator's password: Domain=[TEST] OS=[Windows Server 2016 Datacenter 14393] Server=[Windows Server 2016 Datacenter 6.3] smb: \> ls . D 0 Mon May 7 10:13:08 2018 .. D 0 Mon May 7 10:13:08 2018 test.jp D 0 Mon May 7 10:13:08 2018 62369535 blocks of size 4096. 43968708 blocks available smb: \> exit root@debian:~# cat /etc/debian_version 9.4 root@debian:~# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" root@debian:~# samba -V Version 4.5.12-Debian root@debian:~# net ads lookup Information for Domain Controller: 192.168.1.15 Response Type: LOGON_SAM_LOGON_RESPONSE_EX GUID: c21e433e-9aa6-4a0d-ab13-717abc650e82 Flags: Is a PDC: no Is a GC of the forest: yes Is an LDAP server: yes Supports DS: yes Is running a KDC: yes Is running time services: yes Is the closest DC: yes Is writable: yes Has a hardware clock: no Is a non-domain NC serviced by LDAP server: no Is NT6 DC that has some secrets: no Is NT6 DC that has all secrets: yes Runs Active Directory Web Services: yes Runs on Windows 2012 or later: yes Forest: test.jp Domain: test.jp Domain Controller: dc1.test.jp Pre-Win2k Domain: TEST Pre-Win2k Hostname: DC1 Server Site Name : Default-First-Site-Name Client Site Name : Default-First-Site-Name NT Version: 5 LMNT Token: ffff LM20 Token: ffff root@debian:~# wbinfo -g TEST\domain computers TEST\cert publishers TEST\domain users TEST\domain guests TEST\ras and ias servers TEST\domain admins TEST\schema admins TEST\enterprise admins TEST\group policy creator owners TEST\allowed rodc password replication group TEST\denied rodc password replication group TEST\enterprise read-only domain controllers TEST\cloneable domain controllers TEST\protected users TEST\key admins TEST\enterprise key admins TEST\read-only domain controllers TEST\domain controllers TEST\dnsadmins TEST\dnsupdateproxy root@debian:~#