samba: Added ad domain member support to samba::server.

This commit is contained in:
Timo Makinen 2014-01-19 14:13:09 +02:00
parent e0362e5215
commit 9fd6b1e38d
2 changed files with 20 additions and 2 deletions

View file

@ -2,7 +2,11 @@
[global]
# host naming
<% if @auth == 'ad' -%>
workgroup = <%= @workgroup.split('.')[0].upcase %>
<% else -%>
workgroup = <%= @workgroup.upcase %>
<% end -%>
server string = <%= @description %>
netbios name = <%= @names[0] %>
<% if @names.length > 1 -%>
@ -28,6 +32,10 @@ ldap suffix = <%= @ldap_basedn %>
<% elsif @auth == 'domain' -%>
security = domain
password server = *
<% elsif @auth == 'ad' -%>
security = domain
realm = <%= @workgroup.upcase %>
kerberos method = secrets and keytab
<% else -%>
<% scope.function_fail(['Invalid value "%s" for auth.' % @auth]) -%>
<% end -%>