summaryrefslogtreecommitdiff
path: root/lib/libsmb
diff options
context:
space:
mode:
authorBrad Davis <brd@FreeBSD.org>2018-09-20 09:31:27 +0000
committerBrad Davis <brd@FreeBSD.org>2018-09-20 09:31:27 +0000
commit27e35a09ef24d9f90a3a719d6a2fd8544fce1dba (patch)
tree5894acea0b051784649cf3125ecbd07fad4f7e7b /lib/libsmb
parent6999b78550143f7c17eeea04cc87f08cfd72fae8 (diff)
downloadsrc-test-27e35a09ef24d9f90a3a719d6a2fd8544fce1dba.tar.gz
src-test-27e35a09ef24d9f90a3a719d6a2fd8544fce1dba.zip
Move nsmb.conf to lib/libsmb/
This leverages CONFS to do the install Approved by: re (pkgbase, blanket), bapt (mentor) Differential Revision: https://reviews.freebsd.org/D17243
Notes
Notes: svn path=/head/; revision=338824
Diffstat (limited to 'lib/libsmb')
-rw-r--r--lib/libsmb/Makefile2
-rw-r--r--lib/libsmb/nsmb.conf56
2 files changed, 58 insertions, 0 deletions
diff --git a/lib/libsmb/Makefile b/lib/libsmb/Makefile
index 519db5ff94651..3c310819f876d 100644
--- a/lib/libsmb/Makefile
+++ b/lib/libsmb/Makefile
@@ -2,6 +2,8 @@
.include <src.opts.mk>
+CONFS= nsmb.conf
+CONFSMODE= 600
PACKAGE=lib${LIB}
CONTRIBDIR= ${SRCTOP}/contrib/smbfs
.PATH: ${CONTRIBDIR}/lib/smb
diff --git a/lib/libsmb/nsmb.conf b/lib/libsmb/nsmb.conf
new file mode 100644
index 0000000000000..531d0941001d2
--- /dev/null
+++ b/lib/libsmb/nsmb.conf
@@ -0,0 +1,56 @@
+# $FreeBSD$
+#
+# smbfs lookups configuration files in next order:
+# 1. ~/.nsmbrc
+# 2. /etc/nsmb.conf - if this file found it will
+# override values with same keys from user files.
+#
+#
+# This file consist from a set of sections. Each section started by section name
+# surrounded with square brackets:
+# [section_name]
+#
+# End of the section marked either by new section or by the end of file.
+# Each section can contain zero or more parameters:
+# [section_name]
+# key=value
+#
+# where 'key' represents parameter name and 'value' a value assigned
+# to this parameter.
+#
+# SMB library uses next forms of section names (please note that the section
+# name should be in upper case when it refers to server, user or share):
+# A) [default]
+# B) [SERVER]
+# C) [SERVER:USER]
+# D) [SERVER:USER:SHARE]
+#
+# Here is the map of possible keywords:
+#
+# keyword/section A B C D Comment
+#
+# addr - + - - IP address of SMB server
+# charsets + + + + local:remote charset pair
+# nbns + + - - address of NetBIOS name server (WINS)
+# nbscope + + - - NetBIOS scope
+# nbtimeout + + - - timeout for NetBIOS name servers
+# password - - + + a plain text password used to access to the given share
+# retry_count + + - - number of retries before connection marked as broken
+# timeout + + - - SMB request timeout
+# workgroup + + + + name of workgroup
+#
+
+# A simple configuration example:
+
+# First, define a workgroup.
+#[default]
+#workgroup=SALES
+
+# The 'FSERVER' is an NT server.
+#[FSERVER]
+#charsets=koi8-r:cp866
+#addr=fserv.coolcorp.com
+
+#[FSERVER:JOE]
+# use persistent password cache for user 'joe'
+#password=$$1767877DF