Fedora release 32 samba4.12.0rc4 Acitive Directory Domeinの構築と動作確認

[root@f33 ~]# cat /etc/redhat-release
Fedora release 33 (Rawhide)
[root@f33 ~]# samba -V
Version 4.12.0rc4
[root@f33 ~]# rm /etc/samba/smb.conf
rm: 通常ファイル ‘/etc/samba/smb.conf’ を削除しますか? y
[root@f33 ~]# 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.172]:
Administrator password:
Retype password:

中略

Server Role: active directory domain controller
Hostname: f33
NetBIOS Domain: TEST
DNS Domain: test.jp
DOMAIN SID: S-1-5-21-2341956574-1872031460-3995669738

Fedora release 32 samba4.12.0rc4 Acitive Directory Domeinの構築 と起動

[root@f33 ~]# kinit administrator
Password for administrator@TEST.JP:
[root@f33 ~]# 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@f33 ~]# wbinfo -u
TEST\administrator
TEST\guest
TEST\krbtgt
TEST\chibi
[root@f33 ~]# wbinfo -n chibi
S-1-5-21-2341956574-1872031460-3995669738-1103 SID_USER (1)
[root@f33 ~]# net ads info
LDAP server: 192.168.1.172
LDAP server name: f33.test.jp
Realm: TEST.JP
Bind Path: dc=TEST,dc=JP
LDAP port: 389
Server time: 土, 29 2月 2020 06:48:50 JST
KDC server: 192.168.1.172
Server time offset: 0
Last machine account password change: 土, 29 2月 2020 06:44:06 JST
[root@f33 ~]# host -4 f33
f33.test.jp has address 192.168.1.172
[root@f33 ~]# host -t SRV _ldap._tcp.test.jp
_ldap._tcp.test.jp has SRV record 0 100 389 f33.test.jp.
[root@f33 ~]# host -t SRV _kerberos._udp.test.jp
_kerberos._udp.test.jp has SRV record 0 100 88 f33.test.jp.
[root@f33 ~]# host -t A f33.test.jp.
f33.test.jp has address 192.168.1.172
[root@f33 ~]# smbclient -L localhost -U%

Sharename Type Comment
——— —- ——-
sysvol Disk
netlogon Disk
IPC$ IPC IPC Service (Samba 4.12.0rc4)
SMB1 disabled — no workgroup available
[root@f33 ~]# smbclient //localhost/netlogon -Uadministrator

Fedora release 32 samba4.12.0rc4 Acitive Directory Domeinの動作確認

カテゴリー: fedora, samba4 パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です