rpcd_witness needs ncacn_ip_tcp support and that's only
available if samba-dcerpcd is not started on demand.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15577
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit
d8bfdaaaa737032c6a8623512fcb2cd01850628a)
if (*out_share_type == SMB2_SHARE_TYPE_DISK) {
bool persistent = false; /* persistent handles not implemented yet */
bool cluster = lp_clustering();
+ bool scaleout = cluster;
+ bool witness = cluster && !lp_rpc_start_on_demand_helpers();
bool asymmetric = false; /* shares are symmetric by default */
bool announce;
announce = lp_parm_bool(SNUM(tcon->compat),
"smb3 share cap",
"SCALE OUT",
- cluster);
+ scaleout);
if (announce) {
*out_capabilities |= SMB2_SHARE_CAP_SCALEOUT;
}
announce = lp_parm_bool(SNUM(tcon->compat),
"smb3 share cap",
"CLUSTER",
- cluster);
+ witness);
if (announce) {
*out_capabilities |= SMB2_SHARE_CAP_CLUSTER;
}