samba: Added ad domain member support to samba::server.
This commit is contained in:
parent
e0362e5215
commit
9fd6b1e38d
2 changed files with 20 additions and 2 deletions
|
@ -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 -%>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue