我的 Samba 版本是 4.10.16,我在设置时遇到问题客户签约变量强制的。它在 /etc/samba/smb.conf 中正确设置,但 testparm 显示客户签名 = 必需。我的 RH 版本是 7.9。有人知道如何解决这个问题吗,如果可能的话……
我再次检查了 testparm 是否使用了正确的配置。以下是手册页显示的内容:
client signing (G)
This controls whether the client is allowed or required to use SMB signing. Possible values are auto, mandatory and disabled.
When set to auto or default, SMB signing is offered, but not enforced.
When set to mandatory, SMB signing is required and if set to disabled, SMB signing is not offered either.
IPC$ connections for DCERPC e.g. in winbindd, are handled by the client ipc signing option.
Default: client signing = default
没有必需的值并将此变量设置为汽车节目客户签名 = if_required在 testparm 中。
我还在 2015 年的 Samba Bugzilla 中发现了类似的问题,状态为 NEW -关联。我认为从那时起这个错误就还没有解决......
答案1
解析器接受一些未记录的别名,但它们都是相同的值:
/* SMB signing types. */
static const struct enum_list enum_smb_signing_vals[] = {
{SMB_SIGNING_DEFAULT, "default"},
{SMB_SIGNING_OFF, "No"},
{SMB_SIGNING_OFF, "False"},
{SMB_SIGNING_OFF, "0"},
{SMB_SIGNING_OFF, "Off"},
{SMB_SIGNING_OFF, "disabled"},
{SMB_SIGNING_IF_REQUIRED, "if_required"},
{SMB_SIGNING_IF_REQUIRED, "Yes"},
{SMB_SIGNING_IF_REQUIRED, "True"},
{SMB_SIGNING_IF_REQUIRED, "1"},
{SMB_SIGNING_IF_REQUIRED, "On"},
{SMB_SIGNING_IF_REQUIRED, "enabled"},
{SMB_SIGNING_IF_REQUIRED, "auto"},
{SMB_SIGNING_DESIRED, "desired"},
{SMB_SIGNING_REQUIRED, "required"},
{SMB_SIGNING_REQUIRED, "mandatory"},
{SMB_SIGNING_REQUIRED, "force"},
{SMB_SIGNING_REQUIRED, "forced"},
{SMB_SIGNING_REQUIRED, "enforced"},
{-1, NULL}
};
当将值转换回字符串时testparm
,它会使用此列表中第一个别名。