FreeBSD 13.0-CURRENT r349025 Samba4.8.12 Windows Server 2019 Datacenter Active Directory Domainのメンバーに参加してみた


root@freebsd:~ # kinit administrator
administrator@TEST.JP’s Password:
kinit: krb5_get_init_creds: Clock skew too great
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 -n chibi
S-1-5-21-3897654070-2326690651-824299388-1103 SID_USER (1)
root@freebsd:~ # wbinfo -u
TEST\administrator
TEST\guest
TEST\krbtgt
TEST\chibi
root@freebsd:~ # net ads info
LDAP server: 192.168.1.39
LDAP server name: dc.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: Mon, 17 Jun 2019 15:09:59 JST
KDC server: 192.168.1.39
Server time offset: 0
Last machine account password change: Mon, 17 Jun 2019 15:08:06 JST
root@freebsd:~ # host -4 dc
dc.test.jp has address 192.168.1.39
dc.test.jp has address 192.168.1.16
dc.test.jp has IPv6 address 2400:4052:46e0:b700:7dbe:de1d:c4e4:48cc
dc.test.jp has IPv6 address 2400:4052:46e0:b700:50bf:11b:d3b7:e9ee
root@freebsd:~ # host -4 dc1
dc1.test.jp has address 192.168.1.41
dc1.test.jp has IPv6 address 2400:4052:46e0:b700:54e1:7ac3:ebfb:848b
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 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 dc.test.jp.
root@freebsd:~ # host -t A test.jp
test.jp has address 192.168.1.41
test.jp has address 192.168.1.16
test.jp has address 192.168.1.39
root@freebsd:~ # uname -a
FreeBSD freebsd 13.0-CURRENT FreeBSD 13.0-CURRENT r349025 GENERIC amd64
root@freebsd:~ # samba -V
Version 4.8.12
root@freebsd:~ # smbclient //192.168.1.16/netlogon -Uadministrator
FreeBSD 13.0-CURRENT r349025 Samba4.8.12 Windows Server 2019 Datacenter Active Directory Domainのメンバーに参加してみた

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

FreeBSD 13.0-CURRENT r349025 Samba4.8.12 Active Directory Domain Controllerの構築と動作確認

root@freebsd:~ # 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.165]:
Administrator password:
Retype password:
Looking up IPv4 addresses
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

Adding DomainDN: DC=test,DC=jp
Adding configuration container
Setting up sam.ldb schema
Setting up sam.ldb configuration data
Setting up display specifiers
Modifying display specifiers and extended rights
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
Setting up self join
Adding DNS accounts
Creating CN=MicrosoftDNS,CN=System,DC=test,DC=jp
Creating DomainDnsZones and ForestDnsZones partitions
Populating DomainDnsZones and ForestDnsZones partitions
Setting up sam.ldb rootDSE marking as synchronized
Fixing provision GUIDs
A Kerberos configuration suitable for Samba AD has been generated at /var/db/samba4/private/krb5.conf
Merge the contents of this file with your system krb5.conf or replace it with this one. Do not create a symlink!
Once the above files are installed, your Samba AD server will be ready to use
Server Role: active directory domain controller
Hostname: freebsd
NetBIOS Domain: TEST
DNS Domain: test.jp
DOMAIN SID: S-1-5-21-1593849174-3160430826-2334651641
FreeBSD 13.0-CURRENT r349025 Samba4.8.12 Active Directory Domain Controllerの構築
root@freebsd:~ # kinit administrator
administrator@TEST.JP’s Password:
root@freebsd:~ # klist
Credentials cache: FILE:/tmp/krb5cc_0
Principal: administrator@TEST.JP

Issued Expires Principal
Jun 17 19:47:20 2019 Jun 18 05:47:20 2019 krbtgt/TEST.JP@TEST.JP
root@freebsd:~ # 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@freebsd:~ # wbinfo -u
TEST\administrator
TEST\guest
TEST\krbtgt
TEST\chibi
root@freebsd:~ # wbinfo -n chibi
S-1-5-21-1593849174-3160430826-2334651641-1103 SID_USER (1)
root@freebsd:~ # net ads info
LDAP server: 192.168.1.165
LDAP server name: freebsd.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: Mon, 17 Jun 2019 19:48:09 JST
KDC server: 192.168.1.165
Server time offset: 0
Last machine account password change: Mon, 17 Jun 2019 19:46:18 JST
root@freebsd:~ # host -4 freebsd
freebsd.test.jp has address 192.168.1.165
freebsd.test.jp has IPv6 address 2400:4052:46e0:b700:20c:29ff:fecf:8bce
root@freebsd:~ # host -t SRV _ldap._tcp.test.jp
_ldap._tcp.test.jp has SRV record 0 100 389 freebsd.test.jp.
root@freebsd:~ # host -t SRV _kerberos._udp.test.jp
_kerberos._udp.test.jp has SRV record 0 100 88 freebsd.test.jp.
root@freebsd:~ # host -t A freebsd.test.jp.
freebsd.test.jp has address 192.168.1.165
root@freebsd:~ # smbclient -L localhost -U%
FreeBSD 13.0-CURRENT r349025 Samba4.8.12 Active Directory Domain Controllerの動作確認

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

Fedora29 Kernel5.1.8-200.fc29.x86_64 Update

Fedora29 Kernelが5.1.8-200.fc29.x86_64にUpdateされました。

[root@f29 ~]# uname -r
5.1.8-200.fc29.x86_64
[root@f29 ~]# php -v
PHP 7.3.6 (cli) (built: May 28 2019 09:32:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
[root@f29 ~]# curl -V
curl 7.61.1 (x86_64-redhat-linux-gnu) libcurl/7.61.1 OpenSSL/1.1.1b zlib/1.2.11 brotli/1.0.5 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.8.7/openssl/zlib nghttp2/1.34.0
Release-Date: 2018-09-05
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 brotli TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL Metalink
[root@f29 ~]# samba -V
Version 4.9.8
[root@f29 ~]# cat /etc/redhat-release
Fedora release 29 (Twenty Nine)
[root@f29 ~]#

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

Fedora31 Kernel5.2.0-0.rc4 Update

Fedora31 Kernelが5.2.0-0.rc4にUpdateされました。

[root@f31 ~]# uname -r
5.2.0-0.rc4.git3.2.fc31.x86_64
[root@f31 ~]# php -v
PHP 7.3.6 (cli) (built: May 28 2019 09:32:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
[root@f31 ~]# curl -V
curl 7.65.1 (x86_64-redhat-linux-gnu) libcurl/7.65.1 OpenSSL/1.1.1c-fips zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) libssh/0.8.7/openssl/zlib nghttp2/1.38.0
Release-Date: 2019-06-05
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.10.4
[root@f31 ~]# cat /etc/redhat-release
Fedora release 31 (Rawhide)
[root@f31 ~]#

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

FreeBSD 13.0-CURRENT r349025 curl 7.65.1 Update

FreeBSD 13.0-CURRENT r349025 curlっが7.65.1にUpdateされました。

root@freebsd:~ # uname -a
FreeBSD freebsd 13.0-CURRENT FreeBSD 13.0-CURRENT r349025 GENERIC amd64
root@freebsd:~ # php -v
PHP 7.3.6 (cli) (built: Jun 11 2019 01:48:25) ( 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.38.0
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.8.12
root@freebsd:~ #

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