From 725656119c0e15ee868f1d60462c274d3cb1fc23 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 23 Oct 2009 09:35:32 -0400 Subject: Remove a bunch of unused imports, general cleanup --- ipaserver/plugins/join.py | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'ipaserver') diff --git a/ipaserver/plugins/join.py b/ipaserver/plugins/join.py index b63000d89..08b1596ed 100644 --- a/ipaserver/plugins/join.py +++ b/ipaserver/plugins/join.py @@ -22,17 +22,14 @@ Joining an IPA domain """ from ipalib import api, util -from ipalib import Command, Str, Int +from ipalib import Command, Str from ipalib import errors import krbV -import os, subprocess -from ipapython import ipautil -import tempfile -import sha -import stat -import shutil def get_realm(): + """ + Returns the default kerberos realm configured for this server. + """ krbctx = krbV.default_context() return unicode(krbctx.default_realm) @@ -49,8 +46,6 @@ def validate_host(ugettext, cn): class join(Command): """Join an IPA domain""" - requires_root = True - takes_args = ( Str('cn', validate_host, @@ -113,8 +108,4 @@ class join(Command): return (dn, attrs_list) - def output_for_cli(self, textui, result, args, **options): - textui.print_plain("Welcome to the %s realm" % options['realm']) - textui.print_plain("Your keytab is in %s" % result.get('keytab')) - api.register(join) -- cgit