M
M
Maxim_Q2020-05-03 02:07:46
linux
Maxim_Q, 2020-05-03 02:07:46

Webdav error 1244 only on windows, but works under linux, how to fix it?

On the server under ubuntu, apache is running with webdav configured.
I can connect to this server via webdav from my home laptop under Linux, but from another home computer under windows 7 x64 I cannot connect, writes:
System error 1244.
The requested operation was not performed because the user is not registered.
I connect like this:
net use w: https://1.2.3.4:443/webdav /USER:webdav PasSwoRd
----
On the computer:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters, BasicAuthLevel=1 parameter
Change to 2 meanings no because connection goes and so on SSL.
---
At the same time, on a computer under windows 7 in a browser, I can safely go to the site, enter my login and password, and they will let me in and I will see the contents of the webdav folder.
Where is the mistake?

---
the password was entered and generated by the following command
htpasswd -c -m /etc/apache2/webdav.password webdav
----
apache settings:

<IfModule mod_ssl.c>
  <VirtualHost *:443>
    ServerAdmin [email protected]
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    SSLEngine on
    SSLCertificateFile	  /etc/ssl/certs/webdav.crt
    SSLCertificateKeyFile /etc/ssl/private/webdav.key

    <FilesMatch "\.(cgi|shtml|phtml|php)$">
        SSLOptions +StdEnvVars
    </FilesMatch>
    <Directory /usr/lib/cgi-bin>
        SSLOptions +StdEnvVars
    </Directory>

Alias /webdav /var/www/webdav
 
 <Directory /var/www/webdav>
        Options Indexes
        DAV On
        AuthType Basic
        Allow from all
        AuthName "webdav"
        AuthUserFile /etc/apache2/webdav.password
        Require valid-user
 </Directory>
    </VirtualHost>
</IfModule>


In the logs of apache itself, I see the beginning of authorization and that's it, it doesn't go any further:
"OPTIONS / HTTP/1.1" 200 218 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
"PROPFIND /webdav HTTP/1.1" 405 560 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Damian Lewis, 2021-08-10
@DamianLewis

Faced the same problem. A lot of time has passed since the question was asked, but maybe someone needs a solution to this problem.
The fact is that TLS 1.3 is not supported by default on Windows 7, and if the connection to WebDav or NextCloud is made using this protocol, which is most often the case in our time, the connection will not work. The settings for adding a network drive on Windows are closely related to Internet Explorer, which does not support TLS 1.3. Other browsers Chrome, Firefox support this protocol out of the box, and to enable it in Windows, press Win+R and typeinetcpl.cpl. The Internet Property dialog box opens. Go to the advanced tab and there you will see support for only TLS 1.0 - 1.1 - 1.2. This is if you have Win7 and below. On Windows 10, in the same settings, there is support for the TLS 1.3 protocol (experimental). This protocol must be enabled. It is also necessary that the WebClient service is running . You can check if TLS 1.3 is supported by the browser here https://www.cloudflare.com/ssl/encrypted-sni/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question