Skip to content

Instantly share code, notes, and snippets.

@TheStaticTurtle
Created December 8, 2021 00:29
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 TheStaticTurtle/6536fa5ab0bea2286c5cbd882df78dc2 to your computer and use it in GitHub Desktop.
Save TheStaticTurtle/6536fa5ab0bea2286c5cbd882df78dc2 to your computer and use it in GitHub Desktop.
TrueNAS Samba ldap config
[global]
aio max threads = 2
bind interfaces only = Yes
disable spoolss = Yes
dns proxy = No
enable web service discovery = Yes
kernel change notify = No
ldap admin dn = cn=admin,dc=lan,dc=xxxxxx,dc=fr
ldap group suffix = ou=groups
ldap machine suffix = ou=machines
ldap passwd sync = yes
ldap ssl = no
ldap suffix = dc=lan,dc=xxxxxx,dc=fr
ldap user suffix = ou=people
load printers = No
logging = file
max log size = 5120
nsupdate command = /usr/local/bin/samba-nsupdate -g
obey pam restrictions = Yes
passdb backend = ldapsam:ldap://192.168.1.52
registry shares = Yes
restrict anonymous = 2
server role = standalone server
server string = Gringotts
unix extensions = No
ldapsam:trusted = yes
idmap config *: range = 10000-39999
idmap config * : backend = tdb
directory name cache size = 0
dos filemode = Yes
[homes]
browseable = No
ea support = No
kernel share modes = No
path = /mnt/main/home/%U
posix locking = No
read only = No
vfs objects = streams_xattr shadow_copy_zfs ixnas aio_fbsd
ixnas:zfs_auto_homedir = true
nfs4:chown = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment