From e466bed5453302ca41e6ab7e85fddbdd35548d2a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 11 Aug 2010 15:26:37 -0400 Subject: Enable compat plugin by default and configure netgroups Move the netgroup compat configuration from the nis configuration to the existing compat configuration. Add a 'status' option to the ipa-copmat-manage tool. ticket 91 --- install/tools/ipa-compat-manage | 13 ++++++++++++- install/tools/man/ipa-compat-manage.1 | 6 ++++-- 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'install/tools') diff --git a/install/tools/ipa-compat-manage b/install/tools/ipa-compat-manage index 3128ed718..ded587d5b 100755 --- a/install/tools/ipa-compat-manage +++ b/install/tools/ipa-compat-manage @@ -76,7 +76,7 @@ def main(): if len(args) != 1: print "You must specify one action, either enable or disable" sys.exit(1) - elif args[0] != "enable" and args[0] != "disable": + elif args[0] != "enable" and args[0] != "disable" and args[0] != "status": print "Unrecognized action [" + args[0] + "]" sys.exit(1) @@ -106,6 +106,17 @@ def main(): print lde return 1 + if args[0] == "status": + try: + conn.get_entry('cn=Schema Compatibility,cn=plugins,cn=config', normalize=False) + print "Plugin Enabled" + except errors.NotFound: + print "Plugin Disabled" + except errors.LDAPError, lde: + print "An error occurred while talking to the server." + print lde + return 0 + if args[0] == "enable": try: conn.get_entry('cn=Schema Compatibility,cn=plugins,cn=config', normalize=False) diff --git a/install/tools/man/ipa-compat-manage.1 b/install/tools/man/ipa-compat-manage.1 index 767384a42..5d36b4ecc 100644 --- a/install/tools/man/ipa-compat-manage.1 +++ b/install/tools/man/ipa-compat-manage.1 @@ -20,13 +20,15 @@ .SH "NAME" ipa\-compat\-manage \- Enables or disables the schema compatibility plugin .SH "SYNOPSIS" -ipa\-compat\-manage [options] +ipa\-compat\-manage [options] .SH "DESCRIPTION" Run the command with the \fBenable\fR option to enable the compat plugin. Run the command with the \fBdisable\fR option to disable the compat plugin. -In both cases the user will be prompted to provide the Directory Manager's password unless option \fB\-y\fR is used. +Run the command with the \fBstatus\fR to determine the current status of the compat plugin. + +In all cases the user will be prompted to provide the Directory Manager's password unless option \fB\-y\fR is used. Directory Server will need to be restarted after the schema compatibility plugin has been enabled. -- cgit