4 |
- |
1 |
# $Id: smbldap.conf 35 2011-02-23 09:07:36Z fumiyas $
|
|
|
2 |
#
|
|
|
3 |
# smbldap-tools.conf : Q & D configuration file for smbldap-tools
|
|
|
4 |
|
|
|
5 |
# This code was developped by IDEALX (http://IDEALX.org/) and
|
|
|
6 |
# contributors (their names can be found in the CONTRIBUTORS file).
|
|
|
7 |
#
|
|
|
8 |
# Copyright (C) 2001-2002 IDEALX
|
|
|
9 |
#
|
|
|
10 |
# This program is free software; you can redistribute it and/or
|
|
|
11 |
# modify it under the terms of the GNU General Public License
|
|
|
12 |
# as published by the Free Software Foundation; either version 2
|
|
|
13 |
# of the License, or (at your option) any later version.
|
|
|
14 |
#
|
|
|
15 |
# This program is distributed in the hope that it will be useful,
|
|
|
16 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
17 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
18 |
# GNU General Public License for more details.
|
|
|
19 |
#
|
|
|
20 |
# You should have received a copy of the GNU General Public License
|
|
|
21 |
# along with this program; if not, write to the Free Software
|
|
|
22 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
23 |
# USA.
|
|
|
24 |
|
|
|
25 |
# Purpose :
|
|
|
26 |
# . be the configuration file for all smbldap-tools scripts
|
|
|
27 |
|
|
|
28 |
##############################################################################
|
|
|
29 |
#
|
|
|
30 |
# General Configuration
|
|
|
31 |
#
|
|
|
32 |
##############################################################################
|
|
|
33 |
|
|
|
34 |
# Put your own SID. To obtain this number do: "net getlocalsid".
|
|
|
35 |
# If not defined, parameter is taking from "net getlocalsid" return
|
|
|
36 |
#SID="S-1-5-21-2252255531-4061614174-2474224977"
|
|
|
37 |
|
|
|
38 |
# Domain name the Samba server is in charged.
|
|
|
39 |
# If not defined, parameter is taking from smb.conf configuration file
|
|
|
40 |
# Ex: sambaDomain="IDEALX-NT"
|
|
|
41 |
#sambaDomain="DOMSMB"
|
|
|
42 |
|
|
|
43 |
##############################################################################
|
|
|
44 |
#
|
|
|
45 |
# LDAP Configuration
|
|
|
46 |
#
|
|
|
47 |
##############################################################################
|
|
|
48 |
|
|
|
49 |
# Notes: to use to dual ldap servers backend for Samba, you must patch
|
|
|
50 |
# Samba with the dual-head patch from IDEALX. If not using this patch
|
|
|
51 |
# just use the same server for slaveLDAP and masterLDAP.
|
|
|
52 |
# Those two servers declarations can also be used when you have
|
|
|
53 |
# . one master LDAP server where all writing operations must be done
|
|
|
54 |
# . one slave LDAP server where all reading operations must be done
|
|
|
55 |
# (typically a replication directory)
|
|
|
56 |
|
|
|
57 |
# Slave LDAP server
|
|
|
58 |
# Ex: slaveLDAP=127.0.0.1
|
|
|
59 |
# If not defined, parameter is set to "127.0.0.1"
|
|
|
60 |
slaveLDAP="ldap.example.com"
|
|
|
61 |
|
|
|
62 |
# Slave LDAP port
|
|
|
63 |
# If not defined, parameter is set to "389"
|
|
|
64 |
slavePort="389"
|
|
|
65 |
|
|
|
66 |
# Master LDAP server: needed for write operations
|
|
|
67 |
# Ex: masterLDAP=127.0.0.1
|
|
|
68 |
# If not defined, parameter is set to "127.0.0.1"
|
|
|
69 |
masterLDAP="ldap.example.com"
|
|
|
70 |
|
|
|
71 |
# Master LDAP port
|
|
|
72 |
# If not defined, parameter is set to "389"
|
|
|
73 |
masterPort="389"
|
|
|
74 |
|
|
|
75 |
# Use TLS for LDAP
|
|
|
76 |
# If set to 1, this option will use start_tls for connection
|
|
|
77 |
# (you should also used the port 389)
|
|
|
78 |
# If not defined, parameter is set to "0"
|
|
|
79 |
ldapTLS="1"
|
|
|
80 |
|
|
|
81 |
# Use SSL for LDAP
|
|
|
82 |
# If set to 1, this option will use SSL for connection
|
|
|
83 |
# (standard port for ldaps is 636)
|
|
|
84 |
# If not defined, parameter is set to "0"
|
|
|
85 |
ldapSSL="0"
|
|
|
86 |
|
|
|
87 |
# How to verify the server's certificate (none, optional or require)
|
|
|
88 |
# see "man Net::LDAP" in start_tls section for more details
|
|
|
89 |
verify="require"
|
|
|
90 |
|
|
|
91 |
# CA certificate
|
|
|
92 |
# see "man Net::LDAP" in start_tls section for more details
|
|
|
93 |
cafile="/etc/pki/tls/certs/ldapserverca.pem"
|
|
|
94 |
|
|
|
95 |
# certificate to use to connect to the ldap server
|
|
|
96 |
# see "man Net::LDAP" in start_tls section for more details
|
|
|
97 |
clientcert="/etc/pki/tls/certs/ldapclient.pem"
|
|
|
98 |
|
|
|
99 |
# key certificate to use to connect to the ldap server
|
|
|
100 |
# see "man Net::LDAP" in start_tls section for more details
|
|
|
101 |
clientkey="/etc/pki/tls/certs/ldapclientkey.pem"
|
|
|
102 |
|
|
|
103 |
# LDAP Suffix
|
|
|
104 |
# Ex: suffix=dc=IDEALX,dc=ORG
|
|
|
105 |
suffix="dc=example,dc=com"
|
|
|
106 |
|
|
|
107 |
# Where are stored Users
|
|
|
108 |
# Ex: usersdn="ou=Users,dc=IDEALX,dc=ORG"
|
|
|
109 |
# Warning: if 'suffix' is not set here, you must set the full dn for usersdn
|
|
|
110 |
usersdn="ou=People,${suffix}"
|
|
|
111 |
|
|
|
112 |
# Where are stored Computers
|
|
|
113 |
# Ex: computersdn="ou=Computers,dc=IDEALX,dc=ORG"
|
|
|
114 |
# Warning: if 'suffix' is not set here, you must set the full dn for computersdn
|
|
|
115 |
computersdn="ou=Computers,${suffix}"
|
|
|
116 |
|
|
|
117 |
# Where are stored Groups
|
|
|
118 |
# Ex: groupsdn="ou=Groups,dc=IDEALX,dc=ORG"
|
|
|
119 |
# Warning: if 'suffix' is not set here, you must set the full dn for groupsdn
|
|
|
120 |
groupsdn="ou=Group,${suffix}"
|
|
|
121 |
|
|
|
122 |
# Where are stored Idmap entries (used if samba is a domain member server)
|
|
|
123 |
# Ex: idmapdn="ou=Idmap,dc=IDEALX,dc=ORG"
|
|
|
124 |
# Warning: if 'suffix' is not set here, you must set the full dn for idmapdn
|
|
|
125 |
idmapdn="ou=Idmap,${suffix}"
|
|
|
126 |
|
|
|
127 |
# Where to store next uidNumber and gidNumber available for new users and groups
|
|
|
128 |
# If not defined, entries are stored in sambaDomainName object.
|
|
|
129 |
# Ex: sambaUnixIdPooldn="sambaDomainName=${sambaDomain},${suffix}"
|
|
|
130 |
# Ex: sambaUnixIdPooldn="cn=NextFreeUnixId,${suffix}"
|
|
|
131 |
sambaUnixIdPooldn="sambaDomainName=${sambaDomain},${suffix}"
|
|
|
132 |
|
|
|
133 |
# Default scope Used
|
|
|
134 |
scope="sub"
|
|
|
135 |
|
|
|
136 |
# Unix password encryption (CRYPT, MD5, SMD5, SSHA, SHA, CLEARTEXT)
|
|
|
137 |
hash_encrypt="SSHA"
|
|
|
138 |
|
|
|
139 |
# if hash_encrypt is set to CRYPT, you may set a salt format.
|
|
|
140 |
# default is "%s", but many systems will generate MD5 hashed
|
|
|
141 |
# passwords if you use "$1$%.8s". This parameter is optional!
|
|
|
142 |
crypt_salt_format="%s"
|
|
|
143 |
|
|
|
144 |
##############################################################################
|
|
|
145 |
#
|
|
|
146 |
# Unix Accounts Configuration
|
|
|
147 |
#
|
|
|
148 |
##############################################################################
|
|
|
149 |
|
|
|
150 |
# Login defs
|
|
|
151 |
# Default Login Shell
|
|
|
152 |
# Ex: userLoginShell="/bin/bash"
|
|
|
153 |
userLoginShell="/bin/bash"
|
|
|
154 |
|
|
|
155 |
# Home directory
|
|
|
156 |
# Ex: userHome="/home/%U"
|
|
|
157 |
userHome="/home/%U"
|
|
|
158 |
|
|
|
159 |
# Default mode used for user homeDirectory
|
|
|
160 |
userHomeDirectoryMode="700"
|
|
|
161 |
|
|
|
162 |
# Gecos
|
|
|
163 |
userGecos="System User"
|
|
|
164 |
|
|
|
165 |
# Default User (POSIX and Samba) GID
|
|
|
166 |
defaultUserGid="513"
|
|
|
167 |
|
|
|
168 |
# Default Computer (Samba) GID
|
|
|
169 |
defaultComputerGid="515"
|
|
|
170 |
|
|
|
171 |
# Skel dir
|
|
|
172 |
skeletonDir="/etc/skel"
|
|
|
173 |
|
|
|
174 |
# Default password validation time (time in days) Comment the next line if
|
|
|
175 |
# you don't want password to be enable for defaultMaxPasswordAge days (be
|
|
|
176 |
# careful to the sambaPwdMustChange attribute's value)
|
|
|
177 |
defaultMaxPasswordAge="45"
|
|
|
178 |
|
|
|
179 |
##############################################################################
|
|
|
180 |
#
|
|
|
181 |
# SAMBA Configuration
|
|
|
182 |
#
|
|
|
183 |
##############################################################################
|
|
|
184 |
|
|
|
185 |
# The UNC path to home drives location (%U username substitution)
|
|
|
186 |
# Just set it to a null string if you want to use the smb.conf 'logon home'
|
|
|
187 |
# directive and/or disable roaming profiles
|
|
|
188 |
# Ex: userSmbHome="\\PDC-SMB3\%U"
|
|
|
189 |
userSmbHome="\\PDC-SRV\%U"
|
|
|
190 |
|
|
|
191 |
# The UNC path to profiles locations (%U username substitution)
|
|
|
192 |
# Just set it to a null string if you want to use the smb.conf 'logon path'
|
|
|
193 |
# directive and/or disable roaming profiles
|
|
|
194 |
# Ex: userProfile="\\PDC-SMB3\profiles\%U"
|
|
|
195 |
userProfile="\\PDC-SRV\profiles\%U"
|
|
|
196 |
|
|
|
197 |
# The default Home Drive Letter mapping
|
|
|
198 |
# (will be automatically mapped at logon time if home directory exist)
|
|
|
199 |
# Ex: userHomeDrive="H:"
|
|
|
200 |
userHomeDrive="H:"
|
|
|
201 |
|
|
|
202 |
# The default user netlogon script name (%U username substitution)
|
|
|
203 |
# if not used, will be automatically username.cmd
|
|
|
204 |
# make sure script file is edited under dos
|
|
|
205 |
# Ex: userScript="startup.cmd" # make sure script file is edited under dos
|
|
|
206 |
userScript="logon.bat"
|
|
|
207 |
|
|
|
208 |
# Domain appended to the users "mail"-attribute
|
|
|
209 |
# when smbldap-useradd -M is used
|
|
|
210 |
# Ex: mailDomain="idealx.com"
|
|
|
211 |
mailDomain="example.com"
|
|
|
212 |
|
|
|
213 |
##############################################################################
|
|
|
214 |
#
|
|
|
215 |
# SMBLDAP-TOOLS Configuration (default are ok for a RedHat)
|
|
|
216 |
#
|
|
|
217 |
##############################################################################
|
|
|
218 |
|
|
|
219 |
# Allows not to use smbpasswd (if with_smbpasswd="0" in smbldap.conf) but
|
|
|
220 |
# prefer Crypt::SmbHash library
|
|
|
221 |
with_smbpasswd="0"
|
|
|
222 |
smbpasswd="/usr/bin/smbpasswd"
|
|
|
223 |
|
|
|
224 |
# Allows not to use slappasswd (if with_slappasswd="0" in smbldap.conf)
|
|
|
225 |
# but prefer Crypt:: libraries
|
|
|
226 |
with_slappasswd="0"
|
|
|
227 |
slappasswd="/usr/sbin/slappasswd"
|
|
|
228 |
|
|
|
229 |
# comment out the following line to get rid of the default banner
|
|
|
230 |
# no_banner="1"
|
|
|
231 |
|