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

 
 

sr #107111: Integration of davfs with gnome-keyring

Submitter:  None
Submitted:  Sat 07 Nov 2009 04:24:13 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  Wont Do
Privacy:  Public Assigned to:  _71007
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

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 https://savannah.nongnu.org/support/?107556
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).

Cheers
Werner

- <_71007>
Wed 29 Dec 2010 12:57:04 PM UTC, comment #3: 

Hello Werner, hello Mathieu,

I am using davfs2 with gnome-keyring via gkeyring.
https://launchpad.net/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 https://launchpad.net/~christian-forster/+archive/chriss-davfs2

Kind regards
Christian

(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!

Cheers,

Mathieu

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

Cheers
Werner

- <_71007>
Sat 07 Nov 2009 04:24:13 PM UTC, original submission:  

Hi,

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?

Cheers,

Mathieu

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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 _71007 (Posted a comment)
  • -email is unavailable- added by None (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-26 _71007 StatusPostponed Wont Do
        Open/ClosedOpen Closed
    2010-12-29 chrissfors Attached File- Added credentialsEnvVar.patch, #22311
    2009-11-07 _71007 Assigned toNone _71007
        StatusNone Postponed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code