Samba サービスを設定するには:
systemctl start smb
systemctl enable smb
systemctl start nmb
systemctl enable nmb
systemctl start smbd
systemctl enable smbd
systemctl start nmbd
systemctl enable nmbd
[global]
workgroup = <Active Directory ドメインの NetBIOS 名>
password server = <Active Directory ドメインコントローラーの DNS 名>
realm = <Active Directory の大文字のドメイン名>
security = ads
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind use default domain = no
winbind request timeout = 300
net ads join -U <ドメイン管理者>
ドメイン管理者のパスワードまたはドメイン管理者権限のあるユーザーのパスワードの入力が要求されます。
Squid サービスをホストしているサーバーが Active Directory ドメインに追加されます。
net ads testjoin
Squid サービスをホストしているサーバーが Active Directory ドメインに追加されていれば、コンソールに Join is OK
と表示されます。
systemctl restart smb
systemctl restart nmb
systemctl restart smbd
systemctl restart nmbd
「ERROR: failed to setup guest info」と表示される場合は、ゲストグループのマッピングを設定する必要があります。この操作には、コマンド net groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin
を実行します。
systemctl start winbind
systemctl enable winbind
usermod -a -G winbindd_priv proxy
Samba の設定が完了します。Samba の検証に進みます。
ページのトップに戻る