Arch Linux Samba4.12.2 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた


[root@arch ~]# kinit administrator
Password for administrator@TEST.JP:
[root@arch ~]# net ads join -U administrator
Enter administrator’s password:
Using short domain name — TEST
Joined ‘ARCH’ to dns domain ‘test.jp’
No DNS domain configured for arch. Unable to perform DNS Update.
DNS update failed: NT_STATUS_INVALID_PARAMETER
[root@arch ~]# systemctl enable winbind
[root@arch ~]# systemctl start winbind
[root@arch ~]# wbinfo -u
[root@arch ~]# systemctl start rewinbind
Failed to start rewinbind.service: Unit rewinbind.service not found.
[root@arch ~]# systemctl restart ewinbind
Failed to restart ewinbind.service: Unit ewinbind.service not found.
[root@arch ~]# systemctl restart winbind
[root@arch ~]# wbinfo -u
TEST\administrator
TEST\guest
TEST\krbtgt
TEST\chibi
[root@arch ~]# wbinfo -n chibi
S-1-5-21-212194710-1998421792-903778468-1105 SID_USER (1)
[root@arch ~]# net ads info
LDAP server: 192.168.1.31
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: 木, 14 5月 2020 02:06:33 JST
KDC server: 192.168.1.31
Server time offset: -32400
Last machine account password change: 木, 14 5月 2020 11:04:14 JST
[root@arch ~]# smbclient -L localhost -U%
do_connect: Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)
[root@arch ~]# smbclient -L 192.168.1.31 -U%

Sharename Type Comment
——— —- ——-
SMB1 disabled — no workgroup available
[root@arch ~]# smbclient //192.168.1.31/netlogon -Uadministrator
Enter TEST\administrator’s password:
Try “help” to get a list of possible commands.
smb: \> ls
. D 0 Tue May 12 19:33:06 2020
.. D 0 Tue May 12 19:33:06 2020

15570943 blocks of size 4096. 12618709 blocks available
smb: \> exit
[root@arch ~]# smbclient //192.168.1.31/sysvol -Uadministrator
Enter TEST\administrator’s password:
Try “help” to get a list of possible commands.
smb: \> ls
. D 0 Tue May 12 19:33:06 2020
.. D 0 Tue May 12 19:33:06 2020
test.jp D 0 Tue May 12 19:33:06 2020

15570943 blocks of size 4096. 12618709 blocks available
smb: \> exit
[root@arch ~]# cat /etc/os-release
NAME=”Arch Linux”
PRETTY_NAME=”Arch Linux”
ID=arch
BUILD_ID=rolling
ANSI_COLOR=”38;2;23;147;209″
HOME_URL=”https://www.archlinux.org/”
DOCUMENTATION_URL=”https://wiki.archlinux.org/”
SUPPORT_URL=”https://bbs.archlinux.org/”
BUG_REPORT_URL=”https://bugs.archlinux.org/”
LOGO=archlinux
[root@arch ~]# samba -V
Version 4.12.2
[root@arch ~]# 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@arch ~]# 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@arch ~]# 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@arch ~]# 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@arch ~]# 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@arch ~]# host -t A test.jp
test.jp has address 192.168.1.34
test.jp has address 192.168.1.31
test.jp has address 192.168.1.33
[root@arch ~]# net ads lookup
Arch Linux Samba4.12.2 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた

カテゴリー: archlinux, samba4, windows | コメントする

Fedora release 31 PHP 7.4.6 Update

Fedora release 31 PHPが7.4.6にUpdateされました。

[root@f31 ~]# uname -r
5.6.11-200.fc31.x86_64
[root@f31 ~]# php -v
PHP 7.4.6 (cli) (built: May 12 2020 08:09:15) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
[root@f31 ~]# curl -V
curl 7.66.0 (x86_64-redhat-linux-gnu) libcurl/7.66.0 OpenSSL/1.1.1g-fips zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.4/openssl/zlib nghttp2/1.40.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
[root@f31 ~]# samba -V
Version 4.11.8
[root@f31 ~]# cat /etc/redhat-release
Fedora release 31 (Thirty One)
[root@f31 ~]#

カテゴリー: fedora | コメントする

FreeBSD 12.1-STABLE r360721 AMD Ryzen Threadripper 3990X 64-Core Processor で MATE を起動nvidia-smiを設定してみた


root@freebsd:~ # sysctl hw.model
hw.model: AMD Ryzen Threadripper 3990X 64-Core Processor
root@freebsd:~ # uname -a
FreeBSD freebsd 12.1-STABLE FreeBSD 12.1-STABLE r360721 GENERIC amd64
root@freebsd:~ # php -v
PHP 7.4.5 (cli) (built: Apr 23 2020 01:31:51) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
root@freebsd:~ # curl -V
curl 7.70.0 (amd64-portbld-freebsd12.1) libcurl/7.70.0 OpenSSL/1.1.1g zlib/1.2.11 nghttp2/1.40.0
Release-Date: 2020-04-29
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM NTLM_WB SPNEGO SSL TLS-SRP UnixSockets
root@freebsd:~ # samba -V
Version 4.10.15
root@freebsd:~ # nvidia-smi
Thu May 14 16:34:36 2020
+—————————————————————————–+
| NVIDIA-SMI 440.82 Driver Version: 440.82 CUDA Version: N/A |

root@freebsd:~ # kldload amdtemp
root@freebsd:~ # sysctl dev.cpu | grep temperature
dev.cpu.127.temperature: 33.6C
dev.cpu.126.temperature: 33.6C
dev.cpu.125.temperature: 33.6C
dev.cpu.124.temperature: 33.6C
dev.cpu.123.temperature: 33.6C
dev.cpu.122.temperature: 33.6C
dev.cpu.121.temperature: 33.6C
dev.cpu.120.temperature: 33.6C
dev.cpu.119.temperature: 33.6C
dev.cpu.118.temperature: 33.6C
dev.cpu.117.temperature: 33.6C
dev.cpu.116.temperature: 33.6C
dev.cpu.115.temperature: 33.6C
dev.cpu.114.temperature: 33.6C
dev.cpu.113.temperature: 33.6C
dev.cpu.112.temperature: 33.6C
dev.cpu.111.temperature: 33.6C
dev.cpu.110.temperature: 33.6C
dev.cpu.109.temperature: 33.6C
dev.cpu.108.temperature: 33.6C
dev.cpu.107.temperature: 33.6C
dev.cpu.106.temperature: 33.6C
dev.cpu.105.temperature: 33.6C
dev.cpu.104.temperature: 33.6C
dev.cpu.103.temperature: 33.6C
dev.cpu.102.temperature: 33.6C
dev.cpu.101.temperature: 33.6C
dev.cpu.100.temperature: 33.6C
dev.cpu.99.temperature: 33.6C
dev.cpu.98.temperature: 33.6C
dev.cpu.97.temperature: 33.6C
dev.cpu.96.temperature: 33.6C
dev.cpu.95.temperature: 33.6C
dev.cpu.94.temperature: 33.6C
dev.cpu.93.temperature: 33.6C
dev.cpu.92.temperature: 33.6C
dev.cpu.91.temperature: 33.6C
dev.cpu.90.temperature: 33.6C
dev.cpu.89.temperature: 33.6C
dev.cpu.88.temperature: 33.6C
dev.cpu.87.temperature: 33.6C
dev.cpu.86.temperature: 33.6C
dev.cpu.85.temperature: 33.6C
dev.cpu.84.temperature: 33.6C
dev.cpu.83.temperature: 33.6C
dev.cpu.82.temperature: 33.6C
dev.cpu.81.temperature: 33.6C
dev.cpu.80.temperature: 33.6C
dev.cpu.79.temperature: 33.6C
dev.cpu.78.temperature: 33.6C
dev.cpu.77.temperature: 33.6C
dev.cpu.76.temperature: 33.6C
dev.cpu.75.temperature: 33.6C
dev.cpu.74.temperature: 33.6C
dev.cpu.73.temperature: 33.6C
dev.cpu.72.temperature: 33.6C
dev.cpu.71.temperature: 33.6C
dev.cpu.70.temperature: 33.6C
dev.cpu.69.temperature: 33.6C
dev.cpu.68.temperature: 33.6C
dev.cpu.67.temperature: 33.6C
dev.cpu.66.temperature: 33.6C
dev.cpu.65.temperature: 33.6C
dev.cpu.64.temperature: 33.6C
dev.cpu.63.temperature: 33.6C
dev.cpu.62.temperature: 33.6C
dev.cpu.61.temperature: 33.6C
dev.cpu.60.temperature: 33.6C
dev.cpu.59.temperature: 33.6C
dev.cpu.58.temperature: 33.6C
dev.cpu.57.temperature: 33.6C
dev.cpu.56.temperature: 33.6C
dev.cpu.55.temperature: 33.6C
dev.cpu.54.temperature: 33.6C
dev.cpu.53.temperature: 33.6C
dev.cpu.52.temperature: 33.6C
dev.cpu.51.temperature: 33.6C
dev.cpu.50.temperature: 33.6C
dev.cpu.49.temperature: 33.6C
dev.cpu.48.temperature: 33.6C
dev.cpu.47.temperature: 33.6C
dev.cpu.46.temperature: 33.6C
dev.cpu.45.temperature: 33.6C
dev.cpu.44.temperature: 33.6C
dev.cpu.43.temperature: 33.6C
dev.cpu.42.temperature: 33.6C
dev.cpu.41.temperature: 33.6C
dev.cpu.40.temperature: 33.6C
dev.cpu.39.temperature: 33.6C
dev.cpu.38.temperature: 33.6C
dev.cpu.37.temperature: 33.6C
dev.cpu.36.temperature: 33.6C
dev.cpu.35.temperature: 33.6C
dev.cpu.34.temperature: 33.6C
dev.cpu.33.temperature: 33.6C
dev.cpu.32.temperature: 33.6C
dev.cpu.31.temperature: 33.6C
dev.cpu.30.temperature: 33.6C
dev.cpu.29.temperature: 33.6C
dev.cpu.28.temperature: 33.6C
dev.cpu.27.temperature: 33.6C
dev.cpu.26.temperature: 33.6C
dev.cpu.25.temperature: 33.6C
dev.cpu.24.temperature: 33.6C
dev.cpu.23.temperature: 33.6C
dev.cpu.22.temperature: 33.6C
dev.cpu.21.temperature: 33.6C
dev.cpu.20.temperature: 33.6C
dev.cpu.19.temperature: 33.6C
dev.cpu.18.temperature: 33.6C
dev.cpu.17.temperature: 33.6C
dev.cpu.16.temperature: 33.6C
dev.cpu.15.temperature: 33.6C
dev.cpu.14.temperature: 33.6C
dev.cpu.13.temperature: 33.6C
dev.cpu.12.temperature: 33.6C
dev.cpu.11.temperature: 33.6C
dev.cpu.10.temperature: 33.6C
dev.cpu.9.temperature: 33.6C
dev.cpu.8.temperature: 33.6C
dev.cpu.7.temperature: 33.6C
dev.cpu.6.temperature: 33.6C
dev.cpu.5.temperature: 33.6C
dev.cpu.4.temperature: 33.6C
dev.cpu.3.temperature: 33.6C
dev.cpu.2.temperature: 33.6C
dev.cpu.1.temperature: 33.6C
dev.cpu.0.temperature: 33.6C
root@freebsd:~ #
FreeBSD 12.1-STABLE r360721 AMD 64 core 3990x MATE nvidia-smi

カテゴリー: freebsd, nvidia | コメントする

FreeBSD 12.1-STABLE r360721 Samba4.10.15 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\guest
TEST\krbtgt
TEST\administrator
TEST\chibi
root@freebsd:~ # wbinfo -n chibi
S-1-5-21-212194710-1998421792-903778468-1105 SID_USER (1)
root@freebsd:~ # net ads info
LDAP server: 192.168.1.33
LDAP server name: dc1.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: Wed, 13 May 2020 19:37:27 JST
KDC server: 192.168.1.33
Server time offset: -1
Last machine account password change: Wed, 13 May 2020 19:35:57 JST
root@freebsd:~ # 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@freebsd:~ # 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@freebsd:~ # 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@freebsd:~ # 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@freebsd:~ # 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@freebsd:~ # host -t A test.jp
test.jp has address 192.168.1.34
test.jp has address 192.168.1.31
test.jp has address 192.168.1.33
root@freebsd:~ # smbclient -L local -U%
do_connect: Connection to local failed (Error NT_STATUS_UNSUCCESSFUL)
root@freebsd:~ # smbclient -L localhost -U%

Sharename Type Comment
——— —- ——-
netlogon Disk
sysvol Disk
IPC$ IPC IPC Service (Samba 4.10.15)
Reconnecting with SMB1 for workgroup listing.

Server Comment
——— ——-
DC
DC1
DC2
FREEBSD Samba 4.10.15

Workgroup Master
——— ——-
TEST FREEBSD
root@freebsd:~ # smbclient //192.168.1.31/netlogon -Uadministrator
FreeBSD 12.1-STABLE r360721 Samba4.10.15 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた

カテゴリー: freebsd, samba4, windows | コメントする

Manjaro Linux Kernel5.6.11-1-MANJARO Update

Manjaro Linux Kernelが5.6.11-1-MANJAROにUpdateされました。

[man ~]# uname -r
5.6.11-1-MANJARO
[man ~]# php -v
PHP 7.4.5 (cli) (built: Apr 27 2020 10:56:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
[man ~]# curl -V
curl 7.70.0 (x86_64-pc-linux-gnu) libcurl/7.70.0 OpenSSL/1.1.1g zlib/1.2.11 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh2/1.9.0 nghttp2/1.40.0
Release-Date: 2020-04-29
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
[man ~]# samba -V
Version 4.12.2
[man ~]# cat /etc/os-release
NAME=”Manjaro Linux”
ID=manjaro
ID_LIKE=arch
PRETTY_NAME=”Manjaro Linux”
ANSI_COLOR=”1;32″
HOME_URL=”https://www.manjaro.org/”
SUPPORT_URL=”https://www.manjaro.org/”
BUG_REPORT_URL=”https://bugs.manjaro.org/”
LOGO=manjarolinux
[man ~]#

カテゴリー: manjaro | コメントする