diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-10-23 09:35:32 -0400 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-10-25 22:54:55 -0600 |
commit | 725656119c0e15ee868f1d60462c274d3cb1fc23 (patch) | |
tree | f336dc62a41d1052a906c42aeb7d962086e7dda4 /ipaserver/plugins | |
parent | 192cccea9769537b39185aa9997b22577af4810a (diff) | |
download | freeipa-725656119c0e15ee868f1d60462c274d3cb1fc23.tar.gz freeipa-725656119c0e15ee868f1d60462c274d3cb1fc23.tar.xz freeipa-725656119c0e15ee868f1d60462c274d3cb1fc23.zip |
Remove a bunch of unused imports, general cleanup
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r-- | ipaserver/plugins/join.py | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/ipaserver/plugins/join.py b/ipaserver/plugins/join.py index b63000d8..08b1596e 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) |