root@FreeBDF:~ # kinit administrator administrator@TEST.JP's Password: root@FreeBDF:~ # date Fri Sep 11 13:06:21 JST 2020 root@FreeBDF:~ # ntpdate ntp.nict.jp 11 Sep 04:06:56 ntpdate[1905]: step time server 133.243.238.244 offset -32401.374956 sec root@FreeBDF:~ # kinit administrator administrator@TEST.JP's Password: kinit: krb5_get_init_creds: Clock skew too great root@FreeBDF:~ # net ads join -U administrator Enter administrator's password: Using short domain name -- TEST Joined 'FREEBDF' to dns domain 'test.jp' No DNS domain configured for freebdf. Unable to perform DNS Update. DNS update failed: NT_STATUS_INVALID_PARAMETER root@FreeBDF:~ # service samba_server start Performing sanity check on Samba configuration: OK Starting nmbd. Starting smbd. Starting winbindd. root@FreeBDF:~ # wbinfo -u TEST\guest TEST\administrator TEST\krbtgt TEST\chibi root@FreeBDF:~ # wbinfo -n chibi S-1-5-21-4252828235-1945649609-3318306072-1103 SID_USER (1) root@FreeBDF:~ # net ads info LDAP server: 192.168.1.30 LDAP server name: dc1.test.jp Realm: TEST.JP Bind Path: dc=TEST,dc=JP LDAP port: 389 Server time: Fri, 11 Sep 2020 04:11:10 JST KDC server: 192.168.1.30 Server time offset: -5 Last machine account password change: Fri, 11 Sep 2020 04:07:44 JST root@FreeBDF:~ # host -4 dc dc.test.jp has address 192.168.1.28 dc.test.jp has IPv6 address 2400:4052:46e0:b700:5021:a5ac:5882:f185 root@FreeBDF:~ # host -4 dc1 dc1.test.jp has address 192.168.1.30 dc1.test.jp has IPv6 address 2400:4052:46e0:b700:79f0:d44d:dc7a:b245 root@FreeBDF:~ # host -4 dc2 dc2.test.jp has address 192.168.1.53 dc2.test.jp has IPv6 address 2400:4052:46e0:b700:d9fb:4f0:1b8c:d399 root@FreeBDF:~ # uname -a FreeBSD FreeBDF 12.2-PRERELEASE FreeBSD 12.2-PRERELEASE r365545 GENERIC amd64 root@FreeBDF:~ # samba -V Version 4.11.11 root@FreeBDF:~ # net ads lookup Information for Domain Controller: 192.168.1.30 Response Type: LOGON_SAM_LOGON_RESPONSE_EX GUID: afb28d02-8fbc-40b1-9f73-c6d23cce32bb 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@FreeBDF:~ # dig test.jp ; <<>> DiG 9.16.6 <<>> test.jp ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26582 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4000 ;; QUESTION SECTION: ;test.jp. IN A ;; ANSWER SECTION: test.jp. 600 IN A 192.168.1.53 test.jp. 600 IN A 192.168.1.27 test.jp. 600 IN A 192.168.1.28 test.jp. 600 IN A 192.168.1.30 ;; Query time: 2 msec ;; SERVER: 192.168.1.27#53(192.168.1.27) ;; WHEN: Fri Sep 11 04:13:44 JST 2020 ;; MSG SIZE rcvd: 100 root@FreeBDF:~ # klist Credentials cache: FILE:/tmp/krb5cc_0 Principal: administrator@TEST.JP Issued Expires Principal Sep 11 04:06:10 2020 Sep 11 14:06:10 2020 krbtgt/TEST.JP@TEST.JP root@FreeBDF:~ # wbinfo -t checking the trust secret for domain TEST via RPC calls succeeded root@FreeBDF:~ # 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\enterprise key admins TEST\key admins TEST\read-only domain controllers TEST\domain controllers TEST\dnsadmins TEST\dnsupdateproxy root@FreeBDF:~ #