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: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: Werner Baumann <wbaumann>
Open/Closed: OpenOperating 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 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 -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

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

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.
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 File(s):
   
   
Comment:
   

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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 15 Mar 2012 08:26:37 PM UTCwbaumannStatusIn Progress=>Done
    Fri 02 Mar 2012 07:44:12 PM UTCwbaumannStatusNone=>In Progress
      Assigned toNone=>wbaumann

    Back to the top


    Powered by Savane 3.1-cleanup