opensuse:~ # kinit administrator
kinit: Credential cache directory /run/user/0/krb5cc does not exist while getting default ccache
opensuse:~ # mkdir /run/user/0/
opensuse:~ # kinit administrator
Password for administrator@TEST.JP:
opensuse:~ # net ads join -U administrator
Enter administrator’s password:
Using short domain name — TEST
Joined ‘OPENSUSE’ to dns domain ‘test.jp’
No DNS domain configured for opensuse. Unable to perform DNS Update.
DNS update failed: NT_STATUS_INVALID_PARAMETER
opensuse:~ # systemctl restart winbind
opensuse:~ # wbinfo -u
TEST\administrator
TEST\guest
TEST\krbtgt
TEST\chibi
opensuse:~ # wbinfo -n chibi
S-1-5-21-3153889836-307192526-2969236381-1103 SID_USER (1)
opensuse:~ # net ads info
LDAP server: 192.168.1.51
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: Fri, 08 May 2020 04:25:39 JST
KDC server: 192.168.1.51
Server time offset: -2
Last machine account password change: Fri, 08 May 2020 04:22:35 JST
opensuse:~ # cat /etc/os-release
NAME=”openSUSE Tumbleweed”
# VERSION=”20200506″
ID=”opensuse-tumbleweed”
ID_LIKE=”opensuse suse”
VERSION_ID=”20200506″
PRETTY_NAME=”openSUSE Tumbleweed”
ANSI_COLOR=”0;32″
CPE_NAME=”cpe:/o:opensuse:tumbleweed:20200506″
BUG_REPORT_URL=”https://bugs.opensuse.org”
HOME_URL=”https://www.opensuse.org/”
LOGO=”distributor-logo”
opensuse:~ # samba -V
Version 4.12.2-git.149.16ff41ef1f4SUSE-oS15.5-x86_64
opensuse:~ # host -4 dc
dc.test.jp has address 192.168.1.51
dc.test.jp has IPv6 address 2400:4052:46e0:b700:e53c:ed66:5a3c:b8cc
opensuse:~ # 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
opensuse:~ # 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
opensuse:~ # smbclient -L 192.168.1.51 -U%
Sharename Type Comment
——— —- ——-
SMB1 disabled — no workgroup available
opensuse:~ # smbclient //192.168.1.51/netlogon -Uadministrator
OpenSUSE Tumbleweed Samba4.12.2 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた