root@freebsd:~ # kinit administrator
administrator@TEST.JP’s Password:
root@freebsd:~ # host -4 dc
dc.test.jp has address 192.168.1.10
dc.test.jp has address 192.168.1.7
dc.test.jp has IPv6 address 2400:4052:46e0:b700:4f:d564:2171:d644
dc.test.jp has IPv6 address 2400:4052:46e0:b700:b965:55ce:a6fa:cbe
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
nmbd already running? (pid=1000).
Starting smbd.
Starting winbindd.
root@freebsd:~ # wbinfo -u
TEST\administrator
TEST\guest
TEST\krbtgt
TEST\chibi
root@freebsd:~ # wbinfo -n chibi
S-1-5-21-3288142828-1890802880-3761831349-1103 SID_USER (1)
root@freebsd:~ # net ads info
LDAP server: 192.168.1.10
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: Fri, 31 Jan 2020 04:52:36 JST
KDC server: 192.168.1.10
Server time offset: -6
Last machine account password change: Fri, 31 Jan 2020 04:52:16 JST
root@freebsd:~ # smbclient -L localhost -U%
Sharename Type Comment
——— —- ——-
netlogon Disk
sysvol Disk
IPC$ IPC IPC Service (Samba 4.10.13)
Reconnecting with SMB1 for workgroup listing.
Server Comment
——— ——-
DC
FREEBSD Samba 4.10.13
Workgroup Master
——— ——-
TEST DC
root@freebsd:~ # smbclient -L localhost -U%