Fix boot.ldif generation, the domain name component must be derived

from the realm not the domain.
One line fix.
This commit is contained in:
Simo Sorce 2008-03-04 14:25:10 -05:00
parent b3c8780c1d
commit 449344e683

View File

@ -188,7 +188,7 @@ class DsInstance(service.Service):
self.backup_state("running", self.is_running())
self.backup_state("serverid", self.serverid)
self.sub_dict['BASEDC'] = self.domain[:self.domain.find('.')]
self.sub_dict['BASEDC'] = self.realm_name[:self.realm_name.find('.')].lower()
base_txt = ipautil.template_str(BASE_TEMPLATE, self.sub_dict)
logging.debug(base_txt)
base_fd = file("/var/lib/dirsrv/boot.ldif", "w")