Advertisement
Selveste1

Samba conf

Nov 11th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.80 KB | None | 0 0
  1. # Global parameters
  2. [global]
  3.         dns proxy = no
  4.         wins support = yes
  5.         server role = active directory domain controller
  6.         workgroup = YGGDRASIL
  7.         realm = YGGDRASIL.BITTOO.NET
  8.         netbios name = JOTUNHEIM
  9.         server string = Debian PDC - Samba %v
  10.         passdb backend = samba4
  11.         dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr, netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6, backupkey, dnsserver, winreg, srvsvc
  12.         server services = rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbind, ntp_signd, kcc, dnsupdate, smb
  13.         name resolve order = host wins bcast
  14.         kerberos method = system keytab
  15.  
  16.         # IDMAP's
  17.         idmap_ldb:use rfc2307 = yes
  18.         idmap config *:backend = tdb
  19.         idmap config *:range = 70001-80000
  20.         idmap config YGGDRASIL:backend = ad
  21.         idmap config YGGDRASIL:schema_mode = rfc2307
  22.         idmap config YGGDRASIL:range = 10000-20000
  23.  
  24.         # Netwok-settings
  25.         ####################################################
  26.         # hosts deny = ALL
  27.         # hosts allow = 192.168.116.0/23 127.
  28.         hosts allow = ALL
  29.         bind interfaces only = yes
  30.         interfaces = lo pbr0
  31.         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 SO_KEEPALIVE
  32.  
  33.         # Various other directives ( man smb.conf )
  34.         ###################################################
  35.         time server = Yes
  36.         domain master = Yes
  37.         domain logons = Yes
  38.         preferred master = Yes
  39.  
  40.         # Windbind
  41.         ##################################################
  42.         winbind separator = %
  43.         winbind use default domain = yes
  44.         winbind nss info = rfc2307
  45.         winbind enum users  = yes
  46.         winbind enum groups = yes
  47.         template shell = /bin/bash
  48.         template homedir = /home/%ACCOUNTNAME%
  49.  
  50.         # Authentication
  51.         ####################################################
  52.         local master = yes
  53.  
  54.         security = user
  55.         null passwords = no
  56.         encrypt passwords = yes
  57.         obey pam restrictions = no
  58.  
  59.         # Removed for windows clients roaming pofile
  60.         # invalid users = root
  61.  
  62.         # For unix passwd change - dosen't matter if running LDAP for UNIX auth
  63.         # passwd program = /usr/bin/passwd %u
  64.         # passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  65.         # passwd program = /usr/bin/samba-tool user password %u
  66.         passwd chat = *New*password* %n\n *ReType*new*password* %n\n*passwd:*all*authentication*tokens*updated*successfully*
  67.  
  68.  
  69. [netlogon]
  70.         path = /var/lib/samba/sysvol/yggdrasil.bittoo.net/scripts
  71.         read only = No
  72.  
  73. [sysvol]
  74.         path = /var/lib/samba/sysvol
  75.         read only = No
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement