xref: /freebsd/lib/libsmb/nsmb.conf (revision f126890a)
1#
2# smbfs lookups configuration files in next order:
3#	1. ~/.nsmbrc
4#	2. /etc/nsmb.conf - if this file found it will
5#	   override values with same keys from user files.
6#
7#
8# This file consist from a set of sections. Each section started by section name
9# surrounded with square brackets:
10# [section_name]
11#
12# End of the section marked either by new section or by the end of file.
13# Each section can contain zero or more parameters:
14# [section_name]
15# key=value
16#
17# where 'key' represents parameter name and 'value' a value assigned
18# to this parameter.
19#
20# SMB library uses next forms of section names (please note that the section
21# name should be in upper case when it refers to server, user or share):
22# A) [default]
23# B) [SERVER]
24# C) [SERVER:USER]
25# D) [SERVER:USER:SHARE]
26#
27# Here is the map of possible keywords:
28#
29# keyword/section	A  B  C  D	Comment
30#
31# addr			-  +  -  -	IP address of SMB server
32# charsets		+  +  +  +	local:remote charset pair
33# nbns			+  +  -	 -	address of NetBIOS name server (WINS)
34# nbscope		+  +  -	 -	NetBIOS scope
35# nbtimeout		+  +  -	 -	timeout for NetBIOS name servers
36# password		-  -  +	 +	a plain text password used to access to the given share
37# retry_count		+  +  -	 -	number of retries before connection marked as broken
38# timeout		+  +  -	 -	SMB request timeout
39# workgroup		+  +  +  +	name of workgroup
40#
41
42# A simple configuration example:
43
44# First, define a workgroup.
45#[default]
46#workgroup=SALES
47
48# The 'FSERVER' is an NT server.
49#[FSERVER]
50#charsets=koi8-r:cp866
51#addr=fserv.coolcorp.com
52
53#[FSERVER:JOE]
54# use persistent password cache for user 'joe'
55#password=$$1767877DF
56