mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
ipa-adtrust-install: configure host netbios name by default
Ensure we set host netbios name by default in smb.conf https://fedorahosted.org/freeipa/ticket/4116
This commit is contained in:
parent
3264b0eaaf
commit
531ede2904
@ -1,5 +1,6 @@
|
||||
[global]
|
||||
workgroup = $NETBIOS_NAME
|
||||
netbios name = $HOST_NETBIOS_NAME
|
||||
realm = $REALM
|
||||
kerberos method = dedicated keytab
|
||||
dedicated keytab file = FILE:/etc/samba/samba.keytab
|
||||
|
@ -124,6 +124,7 @@ class ADTRUSTInstance(service.Service):
|
||||
self.secondary_rid_base = None
|
||||
|
||||
self.fqdn = None
|
||||
self.host_netbios_name = None
|
||||
self.realm = None
|
||||
self.domain_name = None
|
||||
|
||||
@ -151,6 +152,7 @@ class ADTRUSTInstance(service.Service):
|
||||
|
||||
# Values obtained from API.env
|
||||
self.fqdn = self.fqdn or api.env.host
|
||||
self.host_netbios_name = make_netbios_name(self.fqdn)
|
||||
self.realm = self.realm or api.env.realm
|
||||
self.domain_name = self.domain_name or api.env.domain
|
||||
|
||||
@ -769,6 +771,7 @@ class ADTRUSTInstance(service.Service):
|
||||
self.sub_dict = dict(REALM = self.realm,
|
||||
SUFFIX = self.suffix,
|
||||
NETBIOS_NAME = self.netbios_name,
|
||||
HOST_NETBIOS_NAME = self.host_netbios_name,
|
||||
SMB_DN = self.smb_dn,
|
||||
LDAPI_SOCKET = self.ldapi_socket,
|
||||
FQDN = self.fqdn)
|
||||
|
Loading…
Reference in New Issue
Block a user