FreeBSD 12.1-RELEASE r354233 GENERIC Samba4.10.13 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた


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:~ # wbinfo -u
TEST\administrator
TEST\guest
TEST\krbtgt
TEST\chibi
root@freebsd:~ # wbinfo -n chibi
S-1-5-21-1338043187-543128080-716805463-1103 SID_USER (1)
root@freebsd:~ # net ads info
LDAP server: 192.168.1.50
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: Thu, 21 May 2020 05:54:14 JST
KDC server: 192.168.1.50
Server time offset: -3
Last machine account password change: Thu, 21 May 2020 05:52:30 JST
root@freebsd:~ # smbclient //192.168.1.22/netlogon -Uadministrator
Enter TEST\administrator’s password:
Try “help” to get a list of possible commands.
smb: \> ls
. D 0 Mon May 18 08:25:43 2020
.. D 0 Mon May 18 08:25:43 2020

124869119 blocks of size 4096. 99192993 blocks available
smb: \> exit
root@freebsd:~ # smbclient //192.168.1.22/sysvol -Uadministrator
Enter TEST\administrator’s password:
Try “help” to get a list of possible commands.
smb: \> ls
. D 0 Mon May 18 08:25:43 2020
.. D 0 Mon May 18 08:25:43 2020
test.jp D 0 Mon May 18 08:25:43 2020

124869119 blocks of size 4096. 99192966 blocks available
smb: \> exit
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:~ # uname -a
FreeBSD 12.1-RELEASE r354233 GENERIC Samba4.10.13 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた

カテゴリー: freebsd, samba4, windows パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です