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