~ubuntu-branches/ubuntu/raring/smbldap-tools/raring-proposed

« back to all changes in this revision

Viewing changes to doc/smb.conf

  • Committer: Package Import Robot
  • Author(s): Leo Iannacone
  • Date: 2011-09-27 18:05:13 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20110927180513-2b9g9u4wkqeh4kxn
Tags: 0.9.7-1ubuntu1
* Merge from debian unstable (LP: #889308).  Remaining changes:
  - Apply patch from rdratlos to resolve being unable to join a Windows
    7 or Windows 2008 machine to a Samba domain due to the use of cached
    nss credentials. (LP: #814898)
  - 0020_original_doc_html_index.patch: Add index html file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Global parameters
2
 
[global]
3
 
        workgroup = DOMSMB
4
 
        netbios name = PDC-SRV
5
 
        security = user
6
 
        enable privileges = yes
7
 
        #interfaces = 192.168.5.11
8
 
        #username map = /etc/samba/smbusers
9
 
        server string = Samba Server %v
10
 
        #security = ads
11
 
        encrypt passwords = Yes
12
 
        min passwd length = 3
13
 
        #pam password change = no
14
 
        #obey pam restrictions = No
15
 
 
16
 
        # method 1:
17
 
        #unix password sync = no
18
 
        #ldap passwd sync = yes
19
 
 
20
 
        # method 2:
21
 
        unix password sync = yes
22
 
        ldap passwd sync = no
23
 
        passwd program = /usr/sbin/smbldap-passwd -u "%u"
24
 
        passwd chat = "Changing *\nNew password*" %n\n "*Retype new password*" %n\n"
25
 
 
26
 
        log level = 0
27
 
        syslog = 0
28
 
        log file = /var/log/samba/log.%U
29
 
        max log size = 100000
30
 
        time server = Yes
31
 
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
32
 
        mangling method = hash2
33
 
        Dos charset = 850
34
 
        Unix charset = ISO8859-1
35
 
 
36
 
        logon script = logon.bat
37
 
        logon drive = H:
38
 
        logon home = 
39
 
        logon path = 
40
 
 
41
 
        domain logons = Yes
42
 
        domain master = Yes
43
 
        os level = 65
44
 
        preferred master = Yes
45
 
        wins support = yes
46
 
        # passdb backend = ldapsam:"ldap://ldap1.company.com ldap://ldap2.company.com"
47
 
        passdb backend = ldapsam:ldap://127.0.0.1/
48
 
        ldap admin dn = cn=Manager,dc=company,dc=com
49
 
        #ldap admin dn = cn=samba,ou=DSA,dc=company,dc=com
50
 
        ldap suffix = dc=company,dc=com
51
 
        ldap group suffix = ou=Groups
52
 
        ldap user suffix = ou=Users
53
 
        ldap machine suffix = ou=Computers
54
 
        #ldap idmap suffix = ou=Idmap
55
 
        add user script = /usr/sbin/smbldap-useradd -m "%u"
56
 
        #ldap delete dn = Yes
57
 
        delete user script = /usr/sbin/smbldap-userdel "%u"
58
 
        add machine script = /usr/sbin/smbldap-useradd -t 0 -w "%u"
59
 
        add group script = /usr/sbin/smbldap-groupadd -p "%g" 
60
 
        #delete group script = /usr/sbin/smbldap-groupdel "%g"
61
 
        add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
62
 
        delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
63
 
        set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
64
 
 
65
 
        # printers configuration
66
 
        #printer admin = @"Print Operators"
67
 
        load printers = Yes
68
 
        create mask = 0640
69
 
        directory mask = 0750
70
 
        #force create mode = 0640
71
 
        #force directory mode = 0750
72
 
        nt acl support = No
73
 
        printing = cups
74
 
        printcap name = cups
75
 
        deadtime = 10
76
 
        guest account = nobody
77
 
        map to guest = Bad User
78
 
        dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
79
 
        show add printer wizard = yes
80
 
        ; to maintain capital letters in shortcuts in any of the profile folders:
81
 
        preserve case = yes
82
 
        short preserve case = yes
83
 
        case sensitive = no
84
 
 
85
 
[netlogon]
86
 
        path = /home/netlogon/
87
 
        browseable = No
88
 
        read only = yes
89
 
 
90
 
[profiles]
91
 
        path = /home/profiles
92
 
        read only = no
93
 
        create mask = 0600
94
 
        directory mask = 0700
95
 
        browseable = No
96
 
        guest ok = Yes
97
 
        profile acls = yes
98
 
        csc policy = disable
99
 
        # next line is a great way to secure the profiles 
100
 
        #force user = %U 
101
 
        # next line allows administrator to access all profiles 
102
 
        #valid users = %U "Domain Admins"
103
 
 
104
 
[printers]
105
 
        comment = Network Printers
106
 
        #printer admin = @"Print Operators"
107
 
        guest ok = yes 
108
 
        printable = yes
109
 
        path = /home/spool/
110
 
        browseable = No
111
 
        read only  = Yes
112
 
        printable = Yes
113
 
        print command = /usr/bin/lpr -P%p -r %s
114
 
        lpq command = /usr/bin/lpq -P%p
115
 
        lprm command = /usr/bin/lprm -P%p %j
116
 
        # print command = /usr/bin/lpr -U%U@%M -P%p -r %s
117
 
        # lpq command = /usr/bin/lpq -U%U@%M -P%p
118
 
        # lprm command = /usr/bin/lprm -U%U@%M -P%p %j
119
 
        # lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
120
 
        # lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
121
 
        # queuepause command = /usr/sbin/lpc -U%U@%M stop %p
122
 
        # queueresume command = /usr/sbin/lpc -U%U@%M start %p
123
 
 
124
 
[print$]
125
 
        path = /home/printers
126
 
        guest ok = No
127
 
        browseable = Yes
128
 
        read only = Yes
129
 
        valid users = @"Print Operators"
130
 
        write list = @"Print Operators"
131
 
        create mask = 0664
132
 
        directory mask = 0775
133
 
 
134
 
[public]
135
 
        path = /tmp
136
 
        guest ok = yes
137
 
        browseable = Yes
138
 
        writable = yes