maindavfs2 - Support: sr #109109, Davfs2 give Could not authenticate...

 
 

sr #109109: Davfs2 give Could not authenticate to server: rejected Basic challenge

Submitter:  None
Submitted:  Mon 01 Aug 2016 11:49:31 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  In Progress
Privacy:  Public Assigned to:  _71007
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  Microsoft Windows
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 02 Aug 2016 05:47:14 PM UTC, comment #1: 

Please set option "debug secrets" in your davfs2.conf file. After trying to mount the file system one of your log files will show messages from mount.davfs. You can control wether davfs2 got the username and the password correctly.

If the credentials shown in the log files are not correct then this might be coused by doing some shell escaping at the prompt, which you should not do.

You should next try to enter the credentials in the secrets file. Please read "man davfs2.conf", "man mount.davfs" and the comment in the secrets file.

If the credentials as you see them in the log file are correct then there is probably some problem with the server. Maybe your credentials contain some non-ascii characters and the character set used on the client is different from that used by the server. Using utf8 on the client side should usually work. If not you may choose an different password.

Some additional hints:

  • Don't use option "username" this way. This option is only for use with pam-mount. Put the username in the secrets file.


  • You can avoid the error message concerning the self signed certificate by using option "trust_server_cert".


Read "man davfs2.conf" as well as the comments in the davfs2.conf and the secrets file for details.


- <_71007>
Mon 01 Aug 2016 11:49:31 AM UTC, original submission:  

Hi,

I am using davfs2/1.4.7+neon/0.29.3, and I have installed it in linux. Whenever I try to connect a windows IIS server I am getting rejected Basic challenge.
Earlier I was getting NTLM challenge error, but I removed the windows authentication and added the Basic authentication. The NTLM error gone but the Basic challenge error is coming constantly but the same is working find in linux. Can you help me here? Yes, the certificate is self signed.

# mount -t davfs https://myfileshare.com/fileshare /tmp -o username=user1
  Password:  password
/sbin/mount.davfs: the server certificate does not match the server name
/sbin/mount.davfs: the server certificate is not trusted
  issuer:      .....
  subject:     .....
  identity:    .....
  fingerprint: .....
You only should accept this certificate, if you can
verify the fingerprint! The server might be faked
or there might be a man-in-the-middle-attack.
Accept certificate for this session? [y,N] y
/sbin/mount.davfs: Mounting failed.
Could not authenticate to server: rejected Basic challenge

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _71007 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-26 _71007 Open/ClosedOpen Closed
    2016-08-02 _71007 Severity4 - Important 3 - Normal
        StatusNone In Progress
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code