Debian10.2 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-3288142828-1890802880-3761831349-1103 SID_USER (1)
root@debian:~# net ads info
LDAP server: 192.168.1.7
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: 水, 29 1月 2020 16:13:27 JST
KDC server: 192.168.1.7
Server time offset: -5
Last machine account password change: 水, 29 1月 2020 16:12:39 JST
root@debian:~# 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@debian:~# host -4 dc1
dc1.test.jp has address 192.168.1.11
dc1.test.jp has IPv6 address 2400:4052:46e0:b700:85f5:d25e:c529:278a
root@debian:~# host -4 dc2
dc2.test.jp has address 192.168.1.12
dc2.test.jp has IPv6 address 2400:4052:46e0:b700:309e:ebe1:748c:e149
root@debian:~# host -t SRV _ldap._tcp.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 dc1.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 dc1.test.jp.
_kerberos._udp.test.jp has SRV record 0 100 88 dc2.test.jp.
_kerberos._udp.test.jp has SRV record 0 100 88 dc.test.jp.
root@debian:~# host -t A test.jp
test.jp has address 192.168.1.10
test.jp has address 192.168.1.7
test.jp has address 192.168.1.12
test.jp has address 192.168.1.11
root@debian:~# smbclient -L localhost -U%

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.

Server Comment
——— ——-

Workgroup Master
——— ——-
TEST DC
WORKGROUP DEBIAN
root@debian:~# smbclient -L localhost -U%

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

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

コメントを残す

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