diff options
author | Martin Nagy <mnagy@redhat.com> | 2009-09-02 16:22:50 +0200 |
---|---|---|
committer | Martin Nagy <mnagy@redhat.com> | 2009-09-02 22:04:25 +0200 |
commit | 205a41205b152b34b288d63075d33912095d0a84 (patch) | |
tree | 2df1d68e54e0e9218b47697c58a795614b8043b3 /install/tools/ipa-server-install | |
parent | b07d1b54f9f7d4143e2454908e79dd845ca07468 (diff) | |
download | freeipa-205a41205b152b34b288d63075d33912095d0a84.tar.gz freeipa-205a41205b152b34b288d63075d33912095d0a84.tar.xz freeipa-205a41205b152b34b288d63075d33912095d0a84.zip |
Add A and PTR records of ourselves during installation
If the DNS zones already exist but don't contain our own records, add
them. This patch introduces the ipalib.api into the installers. For now,
the code is still little messy. Later patches will abandon the way we
create zones now and use ipalib.api exclusively.
Diffstat (limited to 'install/tools/ipa-server-install')
-rwxr-xr-x | install/tools/ipa-server-install | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index 306bed58f..cad1a3c04 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -51,7 +51,7 @@ from ipaserver.install.installutils import * from ipapython import sysrestore from ipapython.ipautil import * -from ipalib import util +from ipalib import api, util pw_name = None @@ -646,6 +646,11 @@ def main(): bind = bindinstance.BindInstance(fstore, dm_password) bind.setup(host_name, ip_address, realm_name, domain_name, dns_forwarders) if options.setup_dns: + # First bootstrap the plug-in framework + api.bootstrap(in_server=True) + api.finalize() + api.Backend.ldap2.connect(bind_dn="cn=Directory Manager", bind_pw=dm_password) + bind.create_instance() else: bind.create_sample_bind_zone() |