maindavfs2 - Support: sr #108927, Using secrets option in results...

 
 

sr #108927: Using secrets option in results unknown option

Submitter:  None
Submitted:  Tue 24 Nov 2015 12:58:49 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
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
   

Tue 24 Nov 2015 06:27:16 PM UTC, comment #1: 

What you are missing:

less /etc/davfs2/davfs2.conf:
...
# Please read the davfs2.conf (5) man page for a description of the
# configuration options and syntax rules.


# Available options and default values
# ====================================
...
# secrets         ~/.davfs2/secrets # user config file only
...

man davfs2.conf:
...
secrets
Name of a file that holds the credentials for  servers  and  the proxy, and passwords to decrypt the client certificate. The name must be an absolute path. The file must be read and writable  by the owner only (mode 600).
Default: ~/.davfs2/secrets
Only  allowed  in  the  user configuration file. The system wide secrets file is allways /etc/davfs2/secrets.
...

This option is not allowed in /etc/davfs2/davfs2.conf (the system wide configuration file).

The commented lines in davfs2.conf list all options with their default values. Default values are the values used if you do not configure anything. You only need to edit davfs2.conf if you want to change the value to something different from the default value. So dont't change /etc/davfs2/davfs2.conf.

Werner

- <_71007>
Tue 24 Nov 2015 12:58:49 AM UTC, original submission:  

Hi,

I running v1.4.7-3 on Ubuntu 14.04 server and noticed that if I create a file for the secrets and configure it in davfs2.conf, it will result the following when trying to mount the http dav url:

z@v:~$ mount http://okm.corp:8080/OpenKM/webdav/okm_root
/sbin/mount.davfs:/etc/davfs2/davfs2.conf:34: unknown option

Additional information:
z@v:~$ ls -la ~/.davfs2/secrets
-rw------- 1 z z 2732 Nov 24 00:45 /home/z/.davfs2/secrets

z@v:~$ cat ~/.davfs2/secrets
http://okm.corp:8080/OpenKM/webdav/okm_root okmuser okmpw

z@v:~$ cat /etc/davfs2/davfs2.conf
----- lot of commented lines -----
secrets ~/.davfs2/secrets

Is there anything I am missing here?
Many thanks,
Zoltan

Anonymous

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-15 _71007 Open/ClosedOpen Closed
    2015-11-24 _71007 StatusNone Done
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code