diff --git a/library/ipajoin.py b/library/ipajoin.py index dc550736f2d7eb13ac345633c02425595663dbce..6c515cef62028a2a9609840959568042df7eac0f 100644 --- a/library/ipajoin.py +++ b/library/ipajoin.py @@ -129,7 +129,6 @@ from ipapython.version import NUM_VERSION, VERSION if NUM_VERSION < 40400: raise Exception, "freeipa version '%s' is too old" % VERSION from ipalib import errors -from ipapython.dn import DN from ipaplatform.paths import paths try: from ipalib.install import sysrestore @@ -336,13 +335,6 @@ def main(): if already_joined and not os.path.exists(paths.KRB5_KEYTAB): module.fail_json(msg="krb5.keytab missing! Retry with ipaclient_force_join=yes to generate a new one.") - start = stderr.find('Certificate subject base is: ') - if start >= 0: - start = start + 29 - subject_base = stderr[start:] - subject_base = subject_base.strip() - subject_base = DN(subject_base) - if principal: run(["kdestroy"], raiseonerr=False, env=env)