summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-compat-manage
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-08-11 15:26:37 -0400
committerRob Crittenden <rcritten@redhat.com>2010-08-19 10:50:07 -0400
commite466bed5453302ca41e6ab7e85fddbdd35548d2a (patch)
tree9c0065938b44951bcfd6f9e7eddf4ceea332b262 /install/tools/ipa-compat-manage
parente225ad4341b8f91b0aa3d4be3f93b9082716828e (diff)
downloadfreeipa-e466bed5453302ca41e6ab7e85fddbdd35548d2a.tar.gz
freeipa-e466bed5453302ca41e6ab7e85fddbdd35548d2a.tar.xz
freeipa-e466bed5453302ca41e6ab7e85fddbdd35548d2a.zip
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
Diffstat (limited to 'install/tools/ipa-compat-manage')
-rwxr-xr-xinstall/tools/ipa-compat-manage13
1 files changed, 12 insertions, 1 deletions
diff --git a/install/tools/ipa-compat-manage b/install/tools/ipa-compat-manage
index 3128ed71..ded587d5 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)