Debian10.3 Samba4.9.5 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた


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\administrator
TEST\guest
TEST\krbtgt
TEST\chibi
root@debian:~# wbinfo -n chibi
S-1-5-21-3153889836-307192526-2969236381-1103 SID_USER (1)
root@debian:~# net ads info
LDAP server: 192.168.1.53
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: 水, 06 5月 2020 22:15:07 JST
KDC server: 192.168.1.53
Server time offset: 0
Last machine account password change: 水, 06 5月 2020 22:14:35 JST
root@debian:~# host -4 dc
dc.test.jp has address 192.168.1.51
dc.test.jp has address 192.168.1.53
dc.test.jp has IPv6 address 2400:4052:46e0:b700:e53c:ed66:5a3c:b8cc
dc.test.jp has IPv6 address 2400:4052:46e0:b700:4c26:f2b1:4718:16d
root@debian:~# host -4 dc1
dc1.test.jp has address 192.168.1.55
dc1.test.jp has IPv6 address 2400:4052:46e0:b700:999c:ad75:5ee:8fce
root@debian:~# host -4 dc2
dc2.test.jp has address 192.168.1.54
dc2.test.jp has IPv6 address 2400:4052:46e0:b700:a519:f5f9:1261:1480
root@debian:~# host -t SRV _ldap._tcp.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 dc2.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 dc1.test.jp.
_kerberos._udp.test.jp has SRV record 0 100 88 dc2.test.jp.
root@debian:~# host -t A test.jp
test.jp has address 13.113.45.174
root@debian:~# host -t A dc.test.jp
dc.test.jp has address 192.168.1.53
dc.test.jp has address 192.168.1.51
root@debian:~# host -t A dc1.test.jp
dc1.test.jp has address 192.168.1.55
root@debian:~# host -t A dc2.test.jp
dc2.test.jp has address 192.168.1.54
root@debian:~# smbclient -L localhost -%
Enter administrator@TEST.JP’s password:
Anonymous login successful

Sharename Type Comment
——— —- ——-
netlogon Disk
sysvol Disk
print$ Disk Printer Drivers
IPC$ IPC IPC Service (Samba 4.9.5-Debian)
Reconnecting with SMB1 for workgroup listing.
Anonymous login successful

Server Comment
——— ——-
DC
DC1
DC2
DEBIAN Samba 4.9.5-Debian

Workgroup Master
——— ——-
TEST DEBIAN
root@debian:~# cat /etc/os-release
Debian10.3 Samba4.9.5 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた

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

コメントを残す

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