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

mr_bartleboom

Re: Could not authenticate to server: ignored Wlid1.1 challenge

Yes, I confirm I am locate inside EU.
I just sent you my email address, thank you for your work and help.
martin

Re: Could not authenticate to server: ignored Wlid1.1 challenge

I was testing this yesterday using multiple accounts, both old and new, both with two-factor authentication on and off. All was working.
And suddenly, today, I'm getting the same symptoms as mr_bartleboom for all of them.
Something must have changed overnight. Seeing lot of differences between how the server was responding yesterday and how it is today, my accounts must have been migrated to some kind of new server. Seeing new EU-related headers, I wonder if this is about EU Data Residency regulation. Aren't you all located in EU? I also wonder, if migration might have been triggered by my tests earlier (as I did login to my OneDrive in web browser the first time after months, if not years).

Anyway, I've made basic improvements to make WinSCP compatible with the new server/interface.
But I at least know about one more problem with creating new folders – to be solved the next week.

Issue 2321 – Compatibility with new OneDrive WebDAV interface

@mr_bartleboom: Can you send me an email, so I can send you back a development version of WinSCP for testing? Please include a link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
Guest

Re: Could not authenticate to server: ignored Wlid1.1 challenge

@martin: I'm a bit confused..my outlook.com account is a private account (free) and I don't have idea which is my "YourOrganization"-admin... any suggestion?
martin

Re: Could not authenticate to server: ignored Wlid1.1 challenge

@mr_bartleboom: The server returns:
Access denied. Before opening files in this location you must first browse to the web site and select the option to login automatically

This page:
Microsoft Error - Access denied. Before opening files in this
suggests:
Here is the fix that worked for me:

Browse to https://"YourOrganization"-admin.sharepoint.com/

Policies > Access Control
Change the "Apps that don't use modern authentication" to Allow Access
mr_bartleboom

Re: Could not authenticate to server: ignored Wlid1.1 challenge

Dear @Martin
thank you for your help, here enclosed the 2 logs.
martin

Re: Could not authenticate to server: ignored Wlid1.1 challenge

@mr_bartleboom: Please post log on normal logging level.
And also the log from the GUI for the "ignored Wlid1.1 challenge".
mr_bartleboom

Re: Could not authenticate to server: ignored Wlid1.1 challenge

@martin
Sorry for the long time passed, yes my bad I uploaded the wrong log file.
I try to explain better, I got the error "Could not authenticate to server: ignored Wlid1.1 challenge" using the GUI interface OR the .NET library. After the error, navigating the folders I got a double root CID folder, also my sub folder AC_UPLOAD duplicate it self inside. If I try to delete/navigate the duplicate folders I got "Not found 404".
Instead, using the command line for uploading a file I get a "403 Forbidden", see attached log.
Many thanks for your help and your work.
martin

Re: Could not authenticate to server: ignored Wlid1.1 challenge

@mr_bartleboom: I do not see any "Could not authenticate to server: ignored Wlid1.1 challenge" in your log. Are you sure you have posted the right log?
mr_bartleboom

Could not authenticate to server: ignored Wlid1.1 challenge

I got the same error after months (!!) of successfully uploads using .net.
If I access using the GUI now the root directory shows a subdirectory with the same name (CID).
Also inside the directory where I copied to several times now there is a subdirectory with the same name. If I try to delete the directory it says access forbidden.
Attached the logs
martin

Re: Script encountering authentication issues with WebDAV server (Outlook.com)

@jdProm: I've sent the debug build to you too.
martin

@j150us: Is it regular/personal OneDrive? Or some business account? Or some Sharepoint?

I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.
j150us

I get exact same error when accessing OneDrive from WinSCP
Authentication failed.
Could not authenticate to server: ignored Wlid1.1 challenge

If I click OK all files and directories are displayed except for parent directory name appears among other directories and there is no parent directory icon with an arrow on it and two dots to navigate to parent directory.
If I click parent directory name that appears among the names of its subdirectories I get error message:
Error changing directory to [parent directory name].

I can still download files but If I try to upload something I get error message "Authentication failed".
martin

Re: I have the same problem

@CodeGnome: Where are you connecting to? Please post session log.
CodeGnome

I have the same problem

I can browse all directories in the GUI, but I get the error message
Could not authenticate to server: ignored Wlid1.1 challenge

when I try to upload a file.
martin

Re: Same issue here

Do you mean that you can login and browse folders, but you cannot upload? Anywhere? Or to some specific folders only?
gholmann

Same issue here

I'm having the same error when trying to upload files from local to OneDrive / WebDAV. Has anyone found a solution?
RandomUser447

I have the same issue

After I updated the OneDrive application on my Android phone I started to have the same issue with the WebDAV connection in WinSCP.
I still didn't found a solution until now.
martin

Re: WINSCP GUI

I'm sorry, I have no idea.
jdProm

WINSCP GUI

Yes, I can log in to this account via WinSCP GUI, but when I try to transfer a file from a local folder to the IzvozPodataka folder on OneDrive, I get a '403 Forbidden' error.
martin

Re: Script encountering authentication issues with WebDAV server (Outlook.com)

Can you login using the transferTest from WinSCP GUI?
jdProm

Log files

Hello,

In the attachments, I am providing log files: one for an account with a successful data transfer and the other for an account where there was an error in the data transfer.
martin

Re: Script encountering authentication issues with WebDAV server (Outlook.com)

Can you post session log files for both accounts?
jdProm

Script encountering authentication issues with WebDAV server (Outlook.com)

Hello,

I am trying to transfer SQL files from a local folder to OneDrive using WinSCP with the following batch script:
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /command ^
    "open davs://transferTest@outlook.com:mypassword@d.docs.live.net/96CD15E62736DEE8/Dokumenti/IzvozPodataka" ^
    "put C:\izvoz\*.sql" ^
    "exit"
 
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)

But I get the following error:
Connecting to host...

Authenticated.
Starting the session...
Error changing directory to '/96CD15E62736DEE8/Dokumenti/IzvozPodataka'.
Authentication failed.
Could not authenticate to server: ignored Wlid1.1 challenge
Error
Press any key to continue . . .

I have double-checked the username and password, and they are correct. Can you tell me where the problem might be? The script was running smoothly until about two weeks ago (with the same credentials). As a test, I rewrote this script to upload files to another OneDrive account, and it worked properly. Is there possibly a problem with the account transferTest@outlook.com?

Thank you!