diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-02-14 18:12:10 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-02-14 18:15:35 -0500 |
commit | 16b8d62968194a07e3811cac0b2886f9879a2c7e (patch) | |
tree | 0dc4fe9ee78047851a91e39c4821f6499c22d6b6 /install/tools/ipa-replica-prepare | |
parent | dab452442d1425332369d00d95be4cd1b460407f (diff) | |
download | freeipa-16b8d62968194a07e3811cac0b2886f9879a2c7e.tar.gz freeipa-16b8d62968194a07e3811cac0b2886f9879a2c7e.tar.xz freeipa-16b8d62968194a07e3811cac0b2886f9879a2c7e.zip |
Fix two problems with ipa-replica-prepare
1. Fix a unicode() problem creating the DNS entries
2. Fix a strange NSS error when generating the certificates against
a dogtag server.
The NSS errors are quite strange. When generating the first certificate
nss_shutdown() fails because the database isn't initialized yet but
nss_is_initialized() returned True. The second pass fails because
something is in use.
Diffstat (limited to 'install/tools/ipa-replica-prepare')
-rwxr-xr-x | install/tools/ipa-replica-prepare | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare index 1b643099e..f0661a378 100755 --- a/install/tools/ipa-replica-prepare +++ b/install/tools/ipa-replica-prepare @@ -267,7 +267,7 @@ def main(): if not options.ip_address: try: - api.Command['dns_resolve'](replica_fqdn) + api.Command['dns_resolve'](replica_fqdn.decode('utf-8')) except errors.NotFound: sys.exit("Neither an A nor AAAA record for host '%s' does not exist in DNS.\nUse the --ip-address option to add DNS entries for the replica." % replica_fqdn) |