[global] workgroup = acr server string = Samba PDC %m netbios name = orange security = user encrypt passwords = true ######## # CUPS # ######## printcap name = cups printing = cups ########## # DOMAIN # ########## domain logons = Yes os level = 64 preferred master = Yes domain master = Yes local master = Yes # avoid home and logon logon home = logon path = ######## # LDAP # ######## passdb backend = ldapsam:ldap://192.168.30.15:389 # example passdb backend = ldapsam:ldap://192.168.0.125:389/ ldap ssl = Off invalid users = root ldap admin dn = cn=djadmin,dc=acr,dc=lab ldap suffix = dc=acr,dc=lab ldap group suffix = ou=groups ldap user suffix = ou=users ldap machine suffix = ou=machines ldap passwd sync = Yes # scripts ldap # by default we add users to group "mydomain" add machine script = /usr/sbin/ldapaddmachine '%u' domainmachines add user script = /usr/sbin/ldapadduser '%u' domainusers add group script = /usr/sbin/ldapaddgroup '%g' add user to group script = /usr/sbin/ldapaddusertogroup '%u' '%g' delete user script = /usr/sbin/ldapdeleteuser '%u' delete group script = /usr/sbin/ldapdeletegroup '%g' delete user from group script = /usr/sbin/ldapdeleteuserfromgroup '%u' '%g' set primary group script = /usr/sbin/ldapsetprimarygroup '%u' '%g' ######## # ACLS # ######## map acl inherit = yes nt acl support = yes ######## # LOGS # ######## log file = /var/log/samba/log.%m log level = 10 max log size = 10000 panic action = echo %d | mail -s "an error occured with samba" samba@acr.lab ########## # MISC # ########## socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 # message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' & # logon script located in netlogon share logon script = allusers.bat # individual logon scripts uncomment # logon script = %U.bat ############### # Print Share # ############### [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes guest ok = yes read only = no # Examples. Be sure to match the name of the printer [NAME] with the cups name [HP_4515] comment = cups printer printer = HP_4515 path = /var/spool/samba printable = yes guest ok = yes # [CANON_C2030] # comment = cups printer # printer = CANON_C2030 # path = /var/spool/samba # printable = yes # guest ok = yes ################# # Logon Scripts # ################# [netlogon] comment = Network Logon Services read only = yes write list = +domainadmins path = /var/lib/samba/netlogon ############### # File Shares # ############### [homes] comment = %m Samba shared home folders browseable = no writeable = yes path = /home/%u [shared] comment = common shared folder public = yes writeable = yes path = /opt/smb