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