diff options
Diffstat (limited to 'install')
-rwxr-xr-x | install/tools/ipa-compat-manage | 4 | ||||
-rwxr-xr-x | install/tools/ipa-host-net-manage | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/install/tools/ipa-compat-manage b/install/tools/ipa-compat-manage index bc88cd3a7..c990f9d42 100755 --- a/install/tools/ipa-compat-manage +++ b/install/tools/ipa-compat-manage @@ -101,6 +101,8 @@ def main(): ) except errors.LDAPError, lde: sys.exit("An error occurred while connecting to the server.\n%s\n" % str(lde)) + except errors.ACIError, e: + sys.exit("Authentication failed: %s" % e.info) if args[0] == "status": try: @@ -165,7 +167,7 @@ def main(): retval = 1 finally: - if conn: + if conn.isconnected(): conn.disconnect() return retval diff --git a/install/tools/ipa-host-net-manage b/install/tools/ipa-host-net-manage index 8a8267f1f..ae8a224aa 100755 --- a/install/tools/ipa-host-net-manage +++ b/install/tools/ipa-host-net-manage @@ -105,6 +105,8 @@ def main(): except errors.LDAPError, lde: sys.exit("An error occurred while connecting to the server.\n%s\n" % str(lde)) + except errors.ACIError, e: + sys.exit("Authentication failed: %s" % e.info) if args[0] == "status": try: @@ -191,7 +193,7 @@ def main(): retval = 1 finally: - if conn: + if conn.isconnected(): conn.disconnect() return retval |