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



root@debian:~# cat /etc/debian_version
10.0
root@debian:~# cat /etc/os-release
PRETTY_NAME=”Debian GNU/Linux 10 (buster)”
NAME=”Debian GNU/Linux”
VERSION_ID=”10″
VERSION=”10 (buster)”
VERSION_CODENAME=buster
ID=debian
HOME_URL=”https://www.debian.org/”
SUPPORT_URL=”https://www.debian.org/support”
BUG_REPORT_URL=”https://bugs.debian.org/”
root@debian:~# samba -V
Version 4.9.5-Debian
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 -n chibi
S-1-5-21-3866720368-3273965808-1478398572-1103 SID_USER (1)
root@debian:~# wbinfo -u
TEST\administrator
TEST\guest
TEST\defaultaccount
TEST\krbtgt
TEST\chibi
root@debian:~# wbinfo -n administrator
S-1-5-21-3866720368-3273965808-1478398572-500 SID_USER (1)
root@debian:~# net ads info
LDAP server: 192.168.1.41
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: 日, 14 7月 2019 04:12:28 JST
KDC server: 192.168.1.41
Server time offset: -9
Last machine account password change: 日, 14 7月 2019 04:11:51 JST
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
——— ——-
DC1
DEBIAN Samba 4.9.5-Debian

Workgroup Master
——— ——-
TEST DEBIAN
root@debian:~# host -4 dc
dc.test.jp has address 192.168.1.43
dc.test.jp has address 192.168.1.41
dc.test.jp has IPv6 address 2400:4052:46e0:b700:d0cb:a843:f2ba:fd28
dc.test.jp has IPv6 address 2400:4052:46e0:b700:9c17:70c2:f128:4f74
root@debian:~# host -4 dc1
dc1.test.jp has address 192.168.1.52
dc1.test.jp has IPv6 address 2400:4052:46e0:b700:a555:f9b5:10f3:2a15
root@debian:~# host -4 dc2
dc2.test.jp has address 192.168.1.32
dc2.test.jp has IPv6 address 2400:4052:46e0:b700:d908:2730:71f3:20c
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 dc.test.jp.
_ldap._tcp.test.jp has SRV record 0 100 389 dc1.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.41
test.jp has address 192.168.1.52
test.jp has address 192.168.1.32
test.jp has address 192.168.1.43
root@debian:~# smbclient -L localhost -U%
Debian10.0 Samba4.9.5 Windows Server 2016 Datacenter Active Directory Domain のメンバーに参加してみた

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

Debian10.0 PHP 7.3.7 Update

Debian10.0 PHPを7.3.7にUpdateしてみました。

root@debian:~# uname -r
4.19.0-5-amd64
root@debian:~# php -v
PHP 7.3.7-1+0~20190710.40+debian10~1.gbp032aec (cli) (built: Jul 10 2019 07:37:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.7-1+0~20190710.40+debian10~1.gbp032aec, Copyright (c) 1999-2018, by Zend Technologies
root@debian:~# curl -V
curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
root@debian:~# samba -V
Version 4.9.5-Debian
root@debian:~# cat /etc/os-release
PRETTY_NAME=”Debian GNU/Linux 10 (buster)”
NAME=”Debian GNU/Linux”
VERSION_ID=”10″
VERSION=”10 (buster)”
VERSION_CODENAME=buster
ID=debian
HOME_URL=”https://www.debian.org/”
SUPPORT_URL=”https://www.debian.org/support”
BUG_REPORT_URL=”https://bugs.debian.org/”
root@debian:~# cat /etc/debian_version
10.0
root@debian:~#

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

Manjaro Linux kernel5.2.0-0-MANJARO Update

Manjaro Linux kernelが5.2.0-0-MANJAROにUpdateされました。

[man ~]# uname -r
5.2.0-0-MANJARO
[man ~]# php -v
PHP 7.3.7 (cli) (built: Jul 3 2019 13:55:48) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies
[man ~]# curl -V
curl 7.65.1 (x86_64-pc-linux-gnu) libcurl/7.65.1 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh2/1.8.2 nghttp2/1.36.0
Release-Date: 2019-06-05
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.10.5
[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/”
[man ~]#

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

Debian10.0 を新規にInstallしてみた

Debian10.0 を新規にInstallしてみました。ソースはここです。

root@debian:~# uname -r
4.19.0-5-amd64
root@debian:~# uname -a
Linux debian 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux
root@debian:~# php -v
PHP 7.3.4-2 (cli) (built: Apr 13 2019 19:05:48) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.4, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.4-2, Copyright (c) 1999-2018, by Zend Technologies
root@debian:~# curl -V
curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
root@debian:~# samba -V
Version 4.9.5-Debian
root@debian:~# cat /etc/os-release
PRETTY_NAME=”Debian GNU/Linux 10 (buster)”
NAME=”Debian GNU/Linux”
VERSION_ID=”10″
VERSION=”10 (buster)”
VERSION_CODENAME=buster
ID=debian
HOME_URL=”https://www.debian.org/”
SUPPORT_URL=”https://www.debian.org/support”
BUG_REPORT_URL=”https://bugs.debian.org/”
root@debian:~# cat /etc/debian_version
10.0
root@debian:~#

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

FreeBSD 13.0-CURRENT r349909 Samba4.6.16 Windows Server 2016 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\defaultaccount
TEST\administrator
TEST\krbtgt
TEST\chibi
root@freebsd:~ # smbclient -L localhost -U%
OS=[Windows 6.1] Server=[Samba 4.6.16]

Sharename Type Comment
——— —- ——-
netlogon Disk
sysvol Disk
IPC$ IPC IPC Service (Samba 4.6.16)
OS=[Windows 6.1] Server=[Samba 4.6.16]

Server Comment
——— ——-

Workgroup Master
——— ——-
TEST
root@freebsd:~ # wbinfo -n administrator
S-1-5-21-3866720368-3273965808-1478398572-500 SID_USER (1)
root@freebsd:~ # wbinfo -n chibi
S-1-5-21-3866720368-3273965808-1478398572-1103 SID_USER (1)
root@freebsd:~ # net ads info
LDAP server: 192.168.1.52
LDAP server name: dc1.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: Sat, 13 Jul 2019 15:11:51 JST
KDC server: 192.168.1.52
Server time offset: -9
Last machine account password change: Sat, 13 Jul 2019 15:10:03 JST
root@freebsd:~ # host -4 dc
dc.test.jp has address 192.168.1.43
dc.test.jp has address 192.168.1.41
dc.test.jp has IPv6 address 2400:4052:46e0:b700:9c17:70c2:f128:4f74
dc.test.jp has IPv6 address 2400:4052:46e0:b700:d0cb:a843:f2ba:fd28
root@freebsd:~ # host -4 dc1
dc1.test.jp has address 192.168.1.52
dc1.test.jp has IPv6 address 2400:4052:46e0:b700:a555:f9b5:10f3:2a15
root@freebsd:~ # host -4 dc2
dc2.test.jp has address 192.168.1.32
dc2.test.jp has IPv6 address 2400:4052:46e0:b700:d908:2730:71f3:20c
root@freebsd:~ # klist
Credentials cache: FILE:/tmp/krb5cc_0
Principal: administrator@TEST.JP

Issued Expires Principal
Jul 13 15:09:33 2019 Jul 14 01:09:33 2019 krbtgt/TEST.JP@TEST.JP
root@freebsd:~ # 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 dc.test.jp.
_ldap._tcp.test.jp has SRV record 0 100 389 dc1.test.jp.
root@freebsd:~ # host -t SRV _kerberos._udp.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.
_kerberos._udp.test.jp has SRV record 0 100 88 dc1.test.jp.
root@freebsd:~ # host -t A test.jp
test.jp has address 192.168.1.43
test.jp has address 192.168.1.32
test.jp has address 192.168.1.52
test.jp has address 192.168.1.41
root@freebsd:~ # uname -a
FreeBSD freebsd 13.0-CURRENT FreeBSD 13.0-CURRENT r349909 GENERIC amd64
root@freebsd:~ # samba -V
Version 4.6.16
root@freebsd:~ # smbclient -L localhost -U%
FreeBSD 13.0-CURRENT r349909 Samba4.6.16 Windows Server 2016 Datacenter Active Directory Domain のメンバーに参加してみた

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