helpdavfs2 - Support: sr #107976, Authentication fails if password...


sr #107976: Authentication fails if password contains ":"

Submitted by:  Stefano Maffulli <stefmaffulli>
Submitted on:  Thu Mar 1 01:32:39 2012  
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: Werner Baumann <wbaumann>
Open/Closed: ClosedOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Mar 18 03:35:07 2013, comment #4:

I spent 10 minutes trying to create an account and your system would not let me past the CAPTCHA challenge despite entering it correctly.
My email is -unavailable- when you get it fixed.
To All-

I wated to take a moment and post this solution since I was working on the problem for most of the day today.

When I would type:


I would get this response:

/sbin/mount.davfs: Mounting failed.
Could not authenticate to server: rejected Basic challenge

This was the solution:

gksudo gedit /etc/davfs2/davfs2.conf

Add the following to davfs2.conf:

dav_group users
use_locks 0

Then type:

sudo addgroup <yourusername> users

Then do:

sudo apt-get update
sudo apt-get install cadaver

Then do:

cadaver -t

Login with your Username and Password once you sucessfully authenticate type 'quit' to exit from the session.

Finally, you will be able to sucessfully do:

sudo mount

That is it!

My system is Kabuntu 12.10 32-bit just in case another user requires this informtion. Thank you for having this thread available to us!

Thu Mar 15 20:26:37 2012, comment #3:

Yes, it would be a good idea to file a bug report.

It looks like a simple parsing error that should be easy to fix.

If - for some reason - they can't fix this bug it would not be a big problem either, provided they notify their users about this restriction.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Tue Mar 13 00:21:30 2012, comment #2:

hi Werner,

indeed, the credentials in the HTTP-Request Authorization header are correct and they contain a colon.

The server (ownCloud) is failing authentication though. Should I file an issue with ownCloud?

thanks a lot,

Stefano Maffulli <stefmaffulli>
Fri Mar 2 19:44:12 2012, comment #1:

davfs2 usually has no problems in dealing with passwords that contain special characters like ':'. But in Basic Auth the colon is used to seperate the username from the password. It might confuse the server.

Please check this:

  • change your password to contain a colon again
  • try to login with another client, your browser for example
  • set options 'debug secrets' and 'debug http' in your davfs2.conf file
  • try to mount
  • your log files will now contain debug message from mount.davfs
  • are username and password as you typed them in?
  • the HTTP-request will have an header 'Authorization: Ba

sic' followed by the base64 encoded credentials. You can decode them with 'base64 --decode'. Are they correct?


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Thu Mar 1 01:32:39 2012, original submission:

as subject says,

$ sudo mount owncloud
[sudo] password for USER:
Please enter the username to authenticate with server
http://my.domain.tld/files/webdav.php or hit enter for none.
Username: username
Please enter the password to authenticate user stefano with server
http://my.domain.tld/files/webdav.php or hit enter for none.
/sbin/mount.davfs: Mounting failed.
Could not authenticate to server: rejected Basic challenge

I have a password that has a : in it and I couldn't login in the webdav service via davfs2. I can login instead if I change the password and remove the :.

Stefano Maffulli <stefmaffulli>


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by wbaumann (Posted a comment)
  • -unavailable- added by stefmaffulli (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Apr 22 19:46:30 2014wbaumannOpen/ClosedOpen=>Closed
    Thu Mar 15 20:26:37 2012wbaumannStatusIn Progress=>Done
    Fri Mar 2 19:44:12 2012wbaumannStatusNone=>In Progress
      Assigned toNone=>wbaumann

    Back to the top

    Powered by Savane 3.1-cleanup1