configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 94  →  ?path2? @ 95
/samba/4/standalone/smb.conf
@@ -17,12 +17,14 @@
## `-- samba ##
## |-- smb.conf ##
## |-- smb.conf.local ##
## `-- smb.conf.share ##
## |-- smb.conf.share ##
## `-- smb.conf.ldap ##
## ##
## Files Description: ##
## * /etc/samba/smb.conf (this file) ##
## * /etc/samba/smb.conf.local (local server-site settings) ##
## * /etc/samba/smb.conf.share (samba shares go here) ##
## * /etc/samba/smb.conf.ldap (optional ldab configuration) ##
## ##
###########################################################################
 
@@ -33,9 +35,6 @@
# Standalone.
preferred master = yes
security = user
# Without authentication, shares are not visible
browseable = no
public = no
# For compatibility with scripts.
passdb backend = smbpasswd
map to guest = Bad Password
@@ -75,6 +74,9 @@
# 0 -> LOG_ERR, 1 -> LOG_WARNING, 2 -> LOG_NOTICE, 3 -> LOG_DEBUG
log level = 1
 
# Include LDAP configuration.
#include = /etc/samba/smb.conf.ldap
# Include local settings.
include = /etc/samba/smb.conf.local
 
/samba/4/standalone/smb.conf.ldap
@@ -0,0 +1,42 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ##
## rights of fair usage, the disclaimer and warranty conditions. ##
###########################################################################
## Optimized standalone configuration template for Samba servers. ##
## ##
## Ideal for: ##
## * Virtual machine file sharing ##
## ##
## Requirements: ##
## * Samba 4.x ##
## ##
## File placement layout: ##
## / ##
## `-- etc ##
## `-- samba ##
## |-- smb.conf ##
## |-- smb.conf.local ##
## |-- smb.conf.share ##
## `-- smb.conf.ldap ##
## ##
## Files Description: ##
## * /etc/samba/smb.conf (main configuration file) ##
## * /etc/samba/smb.conf.local (this file) ##
## * /etc/samba/smb.conf.share (samba shares go here) ##
## ##
###########################################################################
 
[global]
# Configuration for LDAP authentication backend.
# The setup assumes that all samba entries are children of the "samba"
# organizational unit.
passdb backend = ldapsam:ldap://example.com
ldap suffix = ou=samba,dc=example,dc=com
ldap admin dn = cn=admin,dc=example,dc=com
ldap ssl = off
ldap user suffix = ou=People
ldap group suffix = ou=Groups
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Idmap
ldap password sync = yes