大网数据广告活动
服务器运维问答

Samba TLS Setup

· 52CE 我爱测

I'm reading this Samba Manpage and according to this, you can setup TLS. I've got 2 questions. On the Server-side, TLS options requires the path of the certificate and keys? How would that work on the client-side? How can I see t…

问题原文

原帖链接 · jarvis · CC BY-SA 3.0

I'm reading this Samba Manpage and according to this, you can setup TLS. I've got 2 questions.

  1. On the Server-side, TLS options requires the path of the certificate and keys?
  2. How would that work on the client-side? How can I see that it would negotiate with the TLS? It's not like it would show a green padlock like that in a web browser.

We have several windows machines and we're running Samba on Ubuntu 14.04 to share files. Currently running Samba version 4.3.9.

已采纳解答

原帖链接 · Ward - Trying Codidact · CC BY-SA 3.0

I'm not 100% clear on what you want to do, but some general information:

The main use for TLS in SAMBA is to do LDAP over SSL - LDAPS.

By default, LDAP connections aren't secured. If you have some application that can use LDAP to authenticate against a SAMBA DC, all the information is going to go back and forth between that application and the DC in the clear. But if you enable TLS on the SAMBA server and if the application supports TLS, then all the LDAP communication will be encrypted.

The information on the SAMBA Wiki for setting up LDAPS is here.

That link answers your first question: yes, your smb.conf will need to include the paths to your cert and key files.

It's your second question I'm unclear on... if you're asking whether configuring TLS will encrypt your access to file shares, then the answer is no, it won't.

For SMB 2.0, the only way to have the traffic encrypted is with IPSEC or similar. But as one of the answers to that question says, SMB 3.0 does support transport encryption, but I can't tell from the Samba Wiki pages (e.g. this one) how SMB 3.0 encryption works in Samba.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。