root@freebsd:~ # kinit administrator
administrator@TEST.JP’s Password:
root@freebsd:~ # net ads join -U administrator
Enter administrator’s password:
Using short domain name — TEST
Joined ‘FREEBSD’ to dns domain ‘test.jp’
No DNS domain configured for freebsd. Unable to perform DNS Update.
DNS update failed: NT_STATUS_INVALID_PARAMETER
root@freebsd:~ # service samba_server start
Performing sanity check on Samba configuration: OK
Starting nmbd.
Starting smbd.
Starting winbindd.
root@freebsd:~ #
root@freebsd:~ # wbinfo -u
TEST\administrator
TEST\guest
TEST\krbtgt
TEST\chibi
root@freebsd:~ # wbinfo -n chibi
S-1-5-21-2092985958-4254752361-2950905742-1103 SID_USER (1)
root@freebsd:~ # net ads info
LDAP server: 192.168.1.19
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: Mon, 13 Jul 2020 19:13:28 JST
KDC server: 192.168.1.19
Server time offset: -2
Last machine account password change: Mon, 13 Jul 2020 19:11:29 JST
root@freebsd:~ # smbclient -L 192.168.1.19 -U%
Sharename Type Comment
——— —- ——-
SMB1 disabled — no workgroup available
root@freebsd:~ # smbclient //192.168.1.19/netlogon -Uadministrator
FreeBSD 12.1-STABLE r363017 Samba4.11.11 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた