Skip to content

Instantly share code, notes, and snippets.

@hgdeoro

hgdeoro/smb.conf Secret

Created October 23, 2014 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgdeoro/4e6204b482f0d790cc8b to your computer and use it in GitHub Desktop.
Save hgdeoro/4e6204b482f0d790cc8b to your computer and use it in GitHub Desktop.
smb.conf
[global]
netbios name = F-FSS4-PEA
workgroup = MYDOMAIN
security = ADS
realm = MYDOMAIN.COM.AR
encrypt passwords = yes
idmap config *:backend = tdb
idmap config *:range = 70001-80000
idmap config MYDOMAIN:backend = ad
idmap config MYDOMAIN:schema_mode = rfc2307
idmap config MYDOMAIN:range = 1000-40000
winbind nss info = rfc2307
winbind trusted domains only = no
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
log level = 10
## https://wiki.samba.org/index.php/Using_RFC2307_on_a_Samba_DC
# > after you've joined the domain as a Domain Controller
idmap_ldb:use rfc2307 = yes
log file = /var/log/samba/log.%m
max log size = 50000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment