diff --git a/samba/templates/smb.conf.erb b/samba/templates/smb.conf.erb index c17deca..cc80c6e 100644 --- a/samba/templates/smb.conf.erb +++ b/samba/templates/smb.conf.erb @@ -25,7 +25,7 @@ passdb backend = tdbsam security = user passdb backend = ldapsam:"<%= @ldap_server.join(' ') -%>" ldap passwd sync = Only -ldap admin dn = "uid=smbadmin,cn=config,<%= @ldap_basedn %> +ldap admin dn = "uid=smbadmin,ou=System,<%= @ldap_basedn %> ldap ssl = no ldap suffix = <%= @ldap_basedn %> <% elsif @auth == 'domain' -%> @@ -44,7 +44,9 @@ ntlm auth = no # log per machine and rotate after 128MB log file = /var/log/samba/%m.log max log size = 131072 +<% if @operatingsystem != 'OpenBSD' -%> utmp = yes +<% end -%> unix charset = <%= @charset %> unix extensions = no