maindavfs2 - Support: sr #110446, Unable to authenticate with NTLMv2


sr #110446: Unable to authenticate with NTLMv2

Submitter:  None
Submitted:  Wed 17 Feb 2021 03:38:37 AM UTC
Category:  None Priority:  5 - Normal
Severity:  5 - Blocker Status:  Done
Privacy:  Public Assigned to:  _71007
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup

Sat 15 May 2021 09:10:32 AM UTC, comment #3: 

You don't need option --with-ssl. The configure script of davfs2 does not use it.

What you need is a Neon library that is compiled against OpenSSL and the development files for this version of Neon and for no other Neon version.

I am not familiar with centOS. It seems to me that they have no Neon library that is compiled against OpenSSL, but I am not sure. I also don't know how they package the development files.

You should contact some centOS help desk to get information about that.

If your new davfs2 program crashes after the password prompt without any error message then the build process was seriously broken.


- <_71007>
Thu 01 Apr 2021 10:34:23 PM UTC, comment #2: 

I am on a centOS system, i tried to build the neon package from src using "./configure --with-ssl=openssl" and then linking the davfs2 to the newly build neon lib(verified with ldd) but this does not seem to do the trick. Still facing the same mount errors.

  • LDD o/p of davfs:

# ldd /sbin/mount.davfs =>  (0x00007ffe093b5000) => /usr/lib64/ (0x00007fd075f53000) => /usr/lib64/ (0x00007fd075d3d000) => /usr/lib64/ (0x00007fd07597d000) => /usr/lib64/ (0x00007fd075767000) => /usr/lib64/ (0x00007fd0754f9000) => /usr/lib64/ (0x00007fd07510e000) => /usr/lib64/ (0x00007fd074f07000) => /usr/lib64/ (0x00007fd074cbb000) => /usr/lib64/ (0x00007fd0749d6000) => /usr/lib64/ (0x00007fd0747a4000) => /usr/lib64/ (0x00007fd0745a0000) => /usr/lib64/ (0x00007fd07437f000) => /usr/lib64/ (0x00007fd074155000)
/lib64/ (0x00007fd07639e000) => /usr/lib64/ (0x00007fd073f3b000) => /usr/lib64/ (0x00007fd073d37000) => /usr/lib64/ (0x00007fd073b1b000) => /usr/lib64/ (0x00007fd07390c000) => /usr/lib64/ (0x00007fd073708000) => /usr/lib64/ (0x00007fd073500000) => /usr/lib64/ (0x00007fd0731f8000) => /usr/lib64/ (0x00007fd072ef6000) => /usr/lib64/ (0x00007fd072cd1000) => /usr/lib64/ (0x00007fd072a70000) => /usr/lib64/ (0x00007fd07284b000)

  • LDD o/p of libneon:

# ldd /usr/lib64/ =>  (0x00007ffda1de8000) => /usr/lib64/ (0x00007f62c1610000) => /usr/lib64/ (0x00007f62c13a2000) => /usr/lib64/ (0x00007f62c0fb7000) => /usr/lib64/ (0x00007f62c0db0000) => /usr/lib64/ (0x00007f62c0b64000) => /usr/lib64/ (0x00007f62c087f000) => /usr/lib64/ (0x00007f62c064d000) => /usr/lib64/ (0x00007f62c0449000) => /usr/lib64/ (0x00007f62c0228000) => /usr/lib64/ (0x00007f62bfffe000) => /usr/lib64/ (0x00007f62bfc3e000) => /usr/lib64/ (0x00007f62bfa24000) => /usr/lib64/ (0x00007f62bf820000) => /usr/lib64/ (0x00007f62bf604000) => /usr/lib64/ (0x00007f62bf3f5000) => /usr/lib64/ (0x00007f62bf1f1000)
/lib64/ (0x00007f62c1a51000) => /usr/lib64/ (0x00007f62befe9000) => /usr/lib64/ (0x00007f62bece1000) => /usr/lib64/ (0x00007f62be9df000) => /usr/lib64/ (0x00007f62be7c9000) => /usr/lib64/ (0x00007f62be5a4000) => /usr/lib64/ (0x00007f62be343000) => /usr/lib64/ (0x00007f62be11e000)

Also, right now i am not able to go past the initial username/password user input
_Please enter the username to authenticate with server
http://10.X.X.X/Shared Documents or hit enter for none.
  Username: administrator
Please enter the password to authenticate user administrator with server
http://10.X.X.X/Shared Documents or hit enter for none.

My initial concern right now is i am not going past this login details, i am not trying to mount a webdav on https so it should not be an ssl cert issue, but not sure.

Shubham Pachpute <pachputeshubham>
Tue 09 Mar 2021 05:14:21 PM UTC, comment #1: 

NTML is only supported by a Neon library that is compiled against OpenSSL. If compiled against GnuTLS then NTLM will not work.

You can use "ldd /sbin/mount.davfs" to check the libraries that are used.

What you can do:

  • If you compile davfs2 from the sources: You need a neon library installed that uses Open SSL (this should be the case on almost all systems). You need the headers of that neon version installed. The headers of a neon version that uses GnuTLS must not be installed (they would interfere with the build process).

  • You can try to install a package that uses Neon with OpenSSL. Debian 10 and newer do this (because of NTLM).


- <_71007>
Wed 17 Feb 2021 03:38:37 AM UTC, original submission:  

I have lost ways in trying to get this work. Can someone please guide me with the exact steps of installing davfs2 and the neon libraries. Currently I have neon 0.31.2 and davfs 1.6 installed.
I am unable to authenticate with ntlmv2 and failing with "could not parse challenge" error.

If anyone has any documentation on what exact options are required for ntlmv2 to work during installation or mounting, it would be great.

Thanking in anticipation



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

Attach Files:

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 pachputeshubham (Posted a comment)
  • -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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-15 _71007 StatusIn Progress Done
    2021-03-09 _71007 StatusNone In Progress
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code