helpdavfs2 - Support: sr #107111, Integration of davfs with...


sr #107111: Integration of davfs with gnome-keyring

Submitted by:  None
Submitted on:  Sat 07 Nov 2009 04:24:13 PM UTC  
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  Postponed
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Originator Email:  -email is unavailable- Open/Closed:  Open
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.


Wed 29 Dec 2010 07:15:06 PM UTC, comment #4:

As far as I can see Gnome keyring sets up a Unix domain socket. The proper way of using Gnome keyring would be to connect to this socket and get the credentials from there (or ask the user and store them in the keyring). And there sure is a clean way to do this from a program written in C.

Extracting credentials from the keyring to store them somewhere else looks to me like a contradiction to the very idea of using a keyring.

If the user wants to run some scripts to start davfs2 there are already ways to pass on credentials from a script (though not recommended by me). See command line option 'username' and
I still see no need to read credentials from environment variables (but if you do you should do it in function parse_secrets not function parse_config).


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Wed 29 Dec 2010 12:57:04 PM UTC, comment #3:

Hello Werner, hello Mathieu,

I am using davfs2 with gnome-keyring via gkeyring.
At runtime, the password is extracted from the keyring and an environment variable is set.

Attached is a patch to make davfs use USER and PASSWORD environment variables. Apart from using with gnome-keyring, I found it useful to behave similar to smbmount.

I have set up an Ubuntu PPA including the patch

Kind regards

(file #22311)

Christian Forster <chrissfors>
Sat 07 Nov 2009 06:32:23 PM UTC, comment #2:

Sure, same for me.
I keep that in mind and if the need really arise, I may try to give a hand.

Keep on the good job!



Sat 07 Nov 2009 06:03:46 PM UTC, comment #1:

It would be a nice feature.
I also thought of using dbus to pop up windows to inform the user of server problems or ask for authentication.

But I don't know much about gnome-keyring or dbus. With respect to my spare time and the fact that both issues are not high priority to me, I will not do this in the near feature.

Maybe somebody else has the knowledge, time and interest to do it.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Sat 07 Nov 2009 04:24:13 PM UTC, original submission:


first of all thanks for the dafs driver. I think that it is very promising.

I'm under CentOS 5.4, and I was wondering whether it would somehow be possible to store the passwords of the dav server to the gnome-keyring.

Mounting through the nautilus file manager, one is asked for the password, but one doesn't have the possibility to save it to the keyring. (whereas if one tries to connect to the webdav server directly through nautilus with the menu File>Connect to server... it stores the password in the keyring)

Maybe it is rather a question for nautilus?





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

Attach Files:

Attached Files
file #22311:  credentialsEnvVar.patch added by chrissfors (1KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by chrissfors (Updated the item)
  • -email is unavailable- added by wbaumann (Posted a comment)
  • -email is unavailable- added by None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-29 chrissfors Attached File- => Added credentialsEnvVar.patch, #22311
    2009-11-07 wbaumann Assigned toNone => wbaumann
        StatusNone => Postponed

    Back to the top

    Powered by Savane 3.3