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


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

Submitted by:  Stefano Maffulli <stefmaffulli>
Submitted on:  Thu 01 Mar 2012 01:32:39 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Open/Closed:  Closed Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

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


Mon 18 Mar 2013 03:35:07 AM UTC, 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 -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 15 Mar 2012 08:26:37 PM UTC, 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 13 Mar 2012 12:21:30 AM UTC, 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 02 Mar 2012 07:44:12 PM UTC, 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 01 Mar 2012 01:32:39 AM UTC, 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 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 wbaumann (Posted a comment)
  • -email is unavailable- added by stefmaffulli (Submitted the item)

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

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-22 wbaumann Open/ClosedOpen => Closed
    2012-03-15 wbaumann StatusIn Progress => Done
    2012-03-02 wbaumann StatusNone => In Progress
        Assigned toNone => wbaumann

    Back to the top

    Powered by Savane 3.5