path: root/ipa-client/ipa-install/ipa-client-install
diff options
authorMartin Kosek <>2011-02-03 17:20:26 +0100
committerRob Crittenden <>2011-02-14 15:03:32 -0500
commit309ed42865715dbc652f1946320ecb522267e97c (patch)
treea0ab23d29a1f068058fb3a7452af642eca3fcafb /ipa-client/ipa-install/ipa-client-install
parent04597f4e363c148d826fdb6338f7aa287cdd90ec (diff)
Detection of v1 server during ipa-client-install
When v2 IPA client is trying to join an IPA v1 server a strange exception is printed out to the user. This patch detects this by catching an XML-RPC error reported by ipa-join binary called in the process which fails on unexisting IPA server 'join' method.
Diffstat (limited to 'ipa-client/ipa-install/ipa-client-install')
1 files changed, 5 insertions, 1 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 32a9aef..d69a103 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -684,7 +684,11 @@ def main():
(stdout, stderr, returncode) = run(join_args, raiseonerr=False, env=env)
if returncode != 0:
- print >>sys.stderr, "Joining realm failed: %s" % stderr,
+ if returncode == 17: # XML-RPC fault - possible IPA v1/v2 incompatibility
+ print "Joining realm failed because of failing XML-RPC request."
+ print " This error may be caused by incompatible server/client major versions."
+ else:
+ print >>sys.stderr, "Joining realm failed: %s" % stderr,
if not options.force:
return 1
print " Use ipa-getkeytab to obtain a host principal for this server."