
我的 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在測試參數中。
我也在 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
,它會使用此清單中的第一個別名。