FreeBSD 12.0-STABLE Samba4.10.5 Update

FreeBSD 12.0-STABLE Sambaが4.10.5にUpdateされました。

root@stable:~ # uname -a
FreeBSD stable 12.0-STABLE FreeBSD 12.0-STABLE r349749 GENERIC amd64
root@stable:~ # php -v
PHP 7.3.6 (cli) (built: Jun 20 2019 01:28:44) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
root@stable:~ # curl -V
curl 7.65.1 (amd64-portbld-freebsd12.0) libcurl/7.65.1 OpenSSL/1.1.1c zlib/1.2.11 nghttp2/1.39.1
Release-Date: 2019-06-05
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@stable:~ # samba -V
Version 4.10.5
root@stable:~ #

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

FreeBSD13.0-CURRENT r349753 Samba4.10.5 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\administrator
TEST\krbtgt
TEST\chibi
root@freebsd:~ # wbinfo -n chibi
S-1-5-21-4283025733-908519724-3295402948-1103 SID_USER (1)
root@freebsd:~ # net ads info
LDAP server: 192.168.1.60
LDAP server name: dc1.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: Sat, 06 Jul 2019 15:35:58 JST
KDC server: 192.168.1.60
Server time offset: -6
Last machine account password change: Sat, 06 Jul 2019 15:34:22 JST
root@freebsd:~ # host -4 dc
dc.test.jp has address 192.168.1.58
dc.test.jp has address 192.168.1.10
dc.test.jp has IPv6 address 2400:4052:46e0:b700:b03b:d3b7:8519:54be
dc.test.jp has IPv6 address 2400:4052:46e0:b700:cc6c:3df7:45e4:e985
root@freebsd:~ # host -4 dc1
dc1.test.jp has address 192.168.1.60
dc1.test.jp has IPv6 address 2400:4052:46e0:b700:9d2:83b4:4031:14cf
root@freebsd:~ # host -4 dc2
dc2.test.jp has address 192.168.1.61
dc2.test.jp has IPv6 address 2400:4052:46e0:b700:f0b7:1338:1a03:19fd
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 dc1.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 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@freebsd:~ # host -t A test.jp
test.jp has address 192.168.1.61
test.jp has address 192.168.1.10
test.jp has address 192.168.1.60
test.jp has address 192.168.1.58
root@freebsd:~ # smbclient //192.168.1.10/netlogon -Uadministrator
FreeBSD13.0-CURRENT r349753 Samba4.10.5 Windows Server 2019 Datacenter Active Directory Domain のメンバーに参加してみた

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

FreeBSD 13.0-CURRENT Samba4.10.5 Update

FreeBSD 13.0-CURRENT Sambaが4.10.5にUpdateされました。

root@freebsd:~ # uname -a
FreeBSD freebsd 13.0-CURRENT FreeBSD 13.0-CURRENT r349753 GENERIC amd64
root@freebsd:~ # php -v
PHP 7.3.6 (cli) (built: Jun 27 2019 02:31:08) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
root@freebsd:~ # curl -V
curl 7.65.1 (amd64-portbld-freebsd13.0) libcurl/7.65.1 OpenSSL/1.1.1c zlib/1.2.11 nghttp2/1.39.1
Release-Date: 2019-06-05
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.5
root@freebsd:~ #

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

CentOS7.6 ソースからビルドしたSamba4.10.5の構築と動作確認

ここを参考にしました。
[root@centos7 ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@centos7 ~]#
[root@centos7 ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@centos7 ~]# /usr/local/samba/bin/samba-tool domain provision
Realm: TEST.JP
Domain [TEST]:
Server Role (dc, member, standalone) [dc]:
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:
DNS forwarder IP address (write ‘none’ to disable forwarding) [192.168.1.8]:
Administrator password:
Retype password:
Looking up IPv4 addresses
More than one IPv4 address found. Using 192.168.1.8
Looking up IPv6 addresses
Setting up share.ldb
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs
CentOS7.6 ソースからビルドしたSamba4.10.5の構築と起動 2
[root@centos7 ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@centos7 ~]# kinit administrator
Password for administrator@TEST.JP:
Warning: Your password will expire in 41 days on 2019年08月14日 11時12分29秒
[root@centos7 ~]# /usr/local/samba/bin/samba-tool user add chibi
Note: samba-tool user add is deprecated. Please use samba-tool user create for the same function.
New Password:
Retype Password:
User ‘chibi’ created successfully
[root@centos7 ~]# /usr/local/samba/bin/samba-tool user list
Guest
krbtgt
chibi
Administrator
[root@centos7 ~]# /usr/local/samba/bin/samba-tool domain level show
Domain and forest function level for domain ‘DC=test,DC=jp’

Forest function level: (Windows) 2008 R2
Domain function level: (Windows) 2008 R2
Lowest function level of a DC: (Windows) 2008 R2
[root@centos7 ~]# /usr/local/samba/bin/samba-tool fsmo show
CentOS7.6 ソースからビルドしたSamba4.10.5の動作確認

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

Fedora27 PHP 7.3.7 Update

Fedora27 PHPが7.3.7にUpdateされました。

[root@f27 ~]# uname -r
4.18.19-100.fc27.x86_64
[root@f27 ~]# php -v
PHP 7.3.7 (cli) (built: Jul 3 2019 11:30:22) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies
[root@f27 ~]# curl -V
curl 7.55.1 (x86_64-redhat-linux-gnu) libcurl/7.55.1 OpenSSL/1.1.0i zlib/1.2.11 libidn2/2.0.5 libpsl/0.18.0 (+libidn2/2.0.4) libssh2/1.8.0 nghttp2/1.31.1
Release-Date: 2017-08-14
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 IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy Metalink PSL
[root@f27 ~]# samba -V
Version 4.7.10
[root@f27 ~]# cat /etc/redhat-release
Fedora release 27 (Twenty Seven)
[root@f27 ~]#

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