summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/pkinit.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/pkinit.py')
-rw-r--r--ipalib/plugins/pkinit.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/ipalib/plugins/pkinit.py b/ipalib/plugins/pkinit.py
index 7a5a93b..cb3b9c2 100644
--- a/ipalib/plugins/pkinit.py
+++ b/ipalib/plugins/pkinit.py
@@ -16,7 +16,13 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+
+from ipalib import api, errors
+from ipalib import Int, Str
+from ipalib import Object, Command
+from ipalib import _
+
+__doc__ = _("""
Kerberos pkinit options
Enable or disable anonymous pkinit using the principal
@@ -34,13 +40,7 @@ EXAMPLES:
For more information on anonymous pkinit see:
http://k5wiki.kerberos.org/wiki/Projects/Anonymous_pkinit
-"""
-
-from ipalib import api, errors
-from ipalib import Int, Str
-from ipalib import Object, Command
-from ipalib import _
-
+""")
class pkinit(Object):
"""
@@ -64,9 +64,8 @@ def valid_arg(ugettext, action):
)
class pkinit_anonymous(Command):
- """
- Enable or Disable Anonymous PKINIT
- """
+ __doc__ = _('Enable or Disable Anonymous PKINIT.')
+
princ_name = 'WELLKNOWN/ANONYMOUS@%s' % api.env.realm
default_dn = 'krbprincipalname=%s,cn=%s,cn=kerberos,%s' % (
princ_name, api.env.realm, api.env.basedn