ipa-join: switch to jansson for json handling

Additionally JSON-RPC should bail out if host is already joined.
Check HTTP status of JSON-RPC request and report 401 Unauthorized error explicitly.

Related: https://pagure.io/freeipa/issue/7966
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Peter Keresztes Schmidt
2020-06-01 01:15:47 +02:00
committed by Alexander Bokovoy
parent c905f94f9b
commit 25205f44a1
5 changed files with 168 additions and 120 deletions

View File

@@ -87,7 +87,7 @@ ipa_join_LDADD = \
$(LDAP_LIBS) \
$(SASL_LIBS) \
$(XMLRPC_LIBS) \
$(JSON_LIBS) \
$(JANSSON_LIBS) \
$(LIBCURL_LIBS) \
$(POPT_LIBS) \
$(LIBINTL_LIBS) \