Changeset View
Changeset View
Standalone View
Standalone View
smb/kio_smb_browse.cpp
Context not available. | |||||
195 | } | 195 | } | ||
---|---|---|---|---|---|
196 | } | 196 | } | ||
197 | if (surl == QLatin1String("smb://")) { | 197 | if (surl == QLatin1String("smb://")) { | ||
198 | #ifdef HAVE_SMBC_SETOPTIONPROTOCOLS | ||||
199 | // Samba 4.8 changed default 'client max protocol' from NT1 to SMB3, | ||||
200 | // together with fixes of Badlock, it broke browsing smb:// with | ||||
201 | // default settings, because only NT1 (SMB1) protocol can browse network. | ||||
202 | // Samba 4.10 made it possible to set min/max protocol version | ||||
203 | // via libsmbclient API. | ||||
204 | qCDebug(KIO_SMB) << "Setting client max protocol = NT1 for browsing SMB network"; | ||||
205 | smb_force_protocol = 1; | ||||
206 | smb_min_proto = "NT1"; | ||||
207 | smb_max_proto = "NT1"; | ||||
208 | #endif | ||||
198 | return kurl; //unchanged | 209 | return kurl; //unchanged | ||
199 | } | 210 | } | ||
200 | 211 | | |||
Context not available. |