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

 
 

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

Submitter:  Stefano Maffulli <stefmaffulli>
Submitted:  Thu 01 Mar 2012 01:32:39 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

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:

mount box.com

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 https://www.box.net/dav

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

Finally, you will be able to sucessfully do:

sudo mount box.com

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!

Anonymous
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.

Cheers
Werner

- <_71007>
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,
stef

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?

Cheers
Werner

- <_71007>
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.
  Password: 
/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:
   
   
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 stefmaffulli (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
    2014-04-22 _71007 Open/ClosedOpen Closed
    2012-03-15 _71007 StatusIn Progress Done
    2012-03-02 _71007 StatusNone In Progress
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code