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


root@debian:~# kinit administrator
kinit: Cannot find KDC for realm “TEST.JP” while getting initial credentials
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\guest
TEST\krbtgt
TEST\administrator
TEST\chibi
root@debian:~# wbinfo -n chibi
S-1-5-21-212194710-1998421792-903778468-1105 SID_USER (1)
root@debian:~# net ads info
LDAP server: 192.168.1.34
LDAP server name: dc2.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: 火, 12 5月 2020 21:25:51 JST
KDC server: 192.168.1.34
Server time offset: 0
Last machine account password change: 火, 12 5月 2020 21:25:16 JST
root@debian:~# host -4 dc
dc.test.jp has address 192.168.1.31
dc.test.jp has IPv6 address 2400:4052:46e0:b700:35fe:39b5:18f9:2353
root@debian:~# host -4 dc1
dc1.test.jp has address 192.168.1.33
dc1.test.jp has IPv6 address 2400:4052:46e0:b700:7955:6a8:f505:354c
root@debian:~# host -4 dc2
dc2.test.jp has address 192.168.1.34
dc2.test.jp has IPv6 address 2400:4052:46e0:b700:611b:b177:f897:2039
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
——— ——-
DC
DC1
DC2
DEBIAN Samba 4.9.5-Debian

Workgroup Master
——— ——-
TEST DEBIAN
WORKGROUP PC
root@debian:~# smbclient -L localhost -U%
Debian10.4 Samba4.9.5 Windows Server 2019 Datacenter Active Directory Domainのメンバーに参加してみた

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

コメントを残す

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