Title: #939: Changing how commands handles error when it can't connect to IPA server
Checking if env has the server attribute. If it doesn't, it means that an IPA server
was not configured.
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/939/head:pr939
git checkout pr939