summaryrefslogtreecommitdiffstats
path: root/ipa-server
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-03-04 14:25:10 -0500
committerSimo Sorce <ssorce@redhat.com>2008-03-04 14:25:10 -0500
commit449344e6839af9a2b7f3d62bdecfa264e49e5b94 (patch)
tree288d5d9033c4229f569627a85be5afda2f853e21 /ipa-server
parentb3c8780c1dacf81b04afe7409068fa9dfd96e927 (diff)
downloadfreeipa-449344e6839af9a2b7f3d62bdecfa264e49e5b94.tar.gz
freeipa-449344e6839af9a2b7f3d62bdecfa264e49e5b94.tar.xz
freeipa-449344e6839af9a2b7f3d62bdecfa264e49e5b94.zip
Fix boot.ldif generation, the domain name component must be derived
from the realm not the domain. One line fix.
Diffstat (limited to 'ipa-server')
-rw-r--r--ipa-server/ipaserver/dsinstance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-server/ipaserver/dsinstance.py b/ipa-server/ipaserver/dsinstance.py
index 4ed4ddf0..9eaf5be4 100644
--- a/ipa-server/ipaserver/dsinstance.py
+++ b/ipa-server/ipaserver/dsinstance.py
@@ -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")