Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

MCorbo

Can't connect to my SharePoint folder through WebDAV

Greetings.
I have 2FA enabled on my account so I had to set an app password to connect, I verified this works if I connect through Windows Explorer, but I need to use WinSCP. Here's my log:
. 2024-06-14 11:21:58.768 --------------------------------------------------------------------------
. 2024-06-14 11:21:58.768 Session name: username@xxx.xx@tenantxxx.sharepoint.com (Ad-Hoc site)
. 2024-06-14 11:21:58.768 Host name: tenantxxx.sharepoint.com (Port: 443)
. 2024-06-14 11:21:58.768 User name: username@xxx.xx (Password: Yes, Key file: No, Passphrase: No)
. 2024-06-14 11:21:58.768 Transfer Protocol: WebDAV
. 2024-06-14 11:21:58.768 Proxy: None
. 2024-06-14 11:21:58.768 HTTPS: Yes [Client certificate: No]
. 2024-06-14 11:21:58.768 WebDAV: Tolerate non-encoded: No
. 2024-06-14 11:21:58.768 TLS/SSL versions: TLSv1.2-TLSv1.3
. 2024-06-14 11:21:58.768 Local directory: default, Remote directory: /sites/mcorbo/username/, Update: Yes, Cache: Yes
. 2024-06-14 11:21:58.768 Cache directory changes: Yes, Permanent: Yes
. 2024-06-14 11:21:58.768 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2024-06-14 11:21:58.768 DST mode: Unix
. 2024-06-14 11:21:58.768 Compression: No
. 2024-06-14 11:21:58.768 --------------------------------------------------------------------------
. 2024-06-14 11:21:58.819 HTTP session to https://tenantxxx.sharepoint.com:443 begins.
. 2024-06-14 11:21:58.820 ssl: SNI enabled by default.
. 2024-06-14 11:21:58.820 auth: Create for WWW-Authenticate
. 2024-06-14 11:21:58.820 Sending request headers:
. 2024-06-14 11:21:58.820 OPTIONS /sites/mcorbo/username/ HTTP/1.1
. 2024-06-14 11:21:58.820 User-Agent: WinSCP/6.3.3 neon/0.33.0
. 2024-06-14 11:21:58.820 Keep-Alive:
. 2024-06-14 11:21:58.820 Connection: TE, Keep-Alive
. 2024-06-14 11:21:58.820 TE: trailers
. 2024-06-14 11:21:58.820 Host: tenantxxx.sharepoint.com
. 2024-06-14 11:21:58.820 Sending request-line and headers:
. 2024-06-14 11:21:58.821 Doing DNS lookup on tenantxxx.sharepoint.com...
. 2024-06-14 11:21:58.912 req: Connecting to 13.107.138.10:443
. 2024-06-14 11:21:58.926 Doing SSL negotiation.
. 2024-06-14 11:21:59.020 Identity match for 'tenantxxx.sharepoint.com': good
. 2024-06-14 11:21:59.020 Verifying certificate for "Microsoft Corporation, Redmond, WA, US" with fingerprint a1:a3:8b:98:e9:eb:2c:4a:ec:f1:da:7e:3a:8b:88:45:07:10:37:6d:29:e4:3d:d6:aa:93:db:da:0f:86:a6:2d and 08 failures
. 2024-06-14 11:21:59.043 Certificate verified against Windows certificate store
. 2024-06-14 11:21:59.043 Using TLSv1.2, cipher TLSv1.2: ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
. 2024-06-14 11:21:59.043 Request sent; retry is 0.
. 2024-06-14 11:21:59.301 [status-line] < HTTP/1.1 403 FORBIDDEN
. 2024-06-14 11:21:59.301 Header Name: [content-length], Value: [13]
. 2024-06-14 11:21:59.301 Header Name: [content-type], Value: [text/plain; charset=utf-8]
. 2024-06-14 11:21:59.301 Header Name: [p3p], Value: [CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"]
. 2024-06-14 11:21:59.301 Header Name: [x-networkstatistics], Value: [0,525568,0,143,4060351,0,525568,140]
. 2024-06-14 11:21:59.301 Header Name: [x-sharepointhealthscore], Value: [0]
. 2024-06-14 11:21:59.301 Header Name: [x-databoundary], Value: [NONE]
. 2024-06-14 11:21:59.301 Header Name: [x-1dscollectorurl], Value: [https://mobile.events.data.microsoft.com/OneCollector/1.0/]
. 2024-06-14 11:21:59.302 Header Name: [x-ariacollectorurl], Value: [https://browser.pipe.aria.microsoft.com/Collector/3.0/]
. 2024-06-14 11:21:59.302 Header Name: [sprequestguid], Value: [d39432a1-a045-5000-a290-5884a12e20a4]
. 2024-06-14 11:21:59.302 Header Name: [request-id], Value: [d39432a1-a045-5000-a290-5884a12e20a4]
. 2024-06-14 11:21:59.302 Header Name: [ms-cv], Value: [oTKU00WgAFCikFiEoS4gpA.0]
. 2024-06-14 11:21:59.302 Header Name: [x-forms_based_auth_required], Value: [https://tenantxxx.sharepoint.com/_forms/default.aspx?ReturnUrl=/_layouts/15/error.aspx&Source=/sites/mcorbo]
. 2024-06-14 11:21:59.302 Header Name: [x-forms_based_auth_return_url], Value: [https://tenantxxx.sharepoint.com/_layouts/15/error.aspx]
. 2024-06-14 11:21:59.302 Header Name: [x-msdavext_error], Value: [917656; Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+the+web+site+and+select+the+option+to+login+automatically.]
. 2024-06-14 11:21:59.302 Header Name: [x-idcrl_auth_params_v1], Value: [IDCRL Type="BPOSIDCRL", EndPoint="/sites/mcorbo/_vti_bin/idcrl.svc/", RootDomain="sharepoint.com", Policy="MBI"]
. 2024-06-14 11:21:59.302 Header Name: [x-powered-by], Value: [ASP.NET]
. 2024-06-14 11:21:59.302 Header Name: [microsoftsharepointteamservices], Value: [16.0.0.24929]
. 2024-06-14 11:21:59.302 Header Name: [x-content-type-options], Value: [nosniff]
. 2024-06-14 11:21:59.302 Header Name: [x-ms-invokeapp], Value: [1; RequireReadOnly]
. 2024-06-14 11:21:59.302 Header Name: [x-cache], Value: [CONFIG_NOCACHE]
. 2024-06-14 11:21:59.302 Header Name: [x-msedge-ref], Value: [Ref A: 388B2BBD5AC84B3B9A343AC74FA129E6 Ref B: BUE30EDGE0309 Ref C: 2024-06-14T14:21:55Z]
. 2024-06-14 11:21:59.302 Header Name: [date], Value: [Fri, 14 Jun 2024 14:21:54 GMT]
. 2024-06-14 11:21:59.302 End of headers.
. 2024-06-14 11:21:59.302 auth: Post-send (#0), code is 403 (want 401), WWW-Authenticate is (none)
. 2024-06-14 11:21:59.302 Request ends, status 403 class 4xx, error line:
. 2024-06-14 11:21:59.302 403 FORBIDDEN
. 2024-06-14 11:21:59.302 Request ends.
. 2024-06-14 11:21:59.302 sess: Destroying session.
. 2024-06-14 11:21:59.302 sess: Closing connection.
. 2024-06-14 11:21:59.302 ssl: Shutdown state: not sent | not received.
. 2024-06-14 11:21:59.302 ssl: Sending closure.
. 2024-06-14 11:21:59.302 sess: Connection closed.
* 2024-06-14 11:21:59.350 (EFatal) 403 FORBIDDEN