Title: #818: Avoid possible recursion in RPC call from client
This commit removes recursion which may lack end condition.
This is my try to fix ^--. The methods and their arguments in the module are very poorly
documented (they are not documented), so I just hope I can initialize the variables used
in logs prior to the cycle.
I also think this actually relates more to https://pagure.io/freeipa/issue/6775
ticket mentioned here and that the person "fixing"
messed up the tickets but it's hopefully OK to
fix it this way.
Aside from just moving everything into a cycle, I also improved logging a bit and had same
error handling for different errors merged into one `except` block (`SSLError`,
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/818/head:pr818
git checkout pr818