title: FreeIPA: unable to run ipa commands
body: <p>I have installed FreeIPA server and created one user.After some time user account got locked so I tried to unlock it using <code>ipa user-unlock</code> but I am faicng issue while Performing ipa commands .Following is the issue that I am facing:</p>
  
  <pre><code>ipa: ERROR: cannot connect to u'https://fqdn/ipa/xml': Authorization Required
  </code></pre>
  
  <p>Following are the logs of httpd:
  *</p>
  
  <blockquote>
    <p>gss_accept_sec_context() failed: Unspecified GSS failure.  Minor code
    may provide more information (, Wrong principal in request), referer:
    <a href="https://fqdn/ipa/xml" rel="nofollow">https://fqdn/ipa/xml</a></p>
  </blockquote>
  
  <p>*</p>
  
  <p>If i try to get ticket for that user I am getting the following error:</p>
  
  <pre><code>kinit: Clients credentials have been revoked while getting initial credentials
  </code></pre>