title: Cannot connect to windows server with Domain Account using Ansible
body: <p>I've followed this <a href="http://docs.ansible.com/ansible/intro_windows.html#active-directory-support" rel="nofollow noreferrer">guide</a> to setup Ansible for use it with Windows Server.</p>
  <p>But when I try to connect I obtain an error. The user used is Domain Administrator and has permissions to connect to that remote server.</p>
  <blockquote>
  <p>$ klist</p>
  </blockquote>
  <blockquote>
  <p>Ticket cache: KEYRING:persistent:1000:1000</p>
  </blockquote>
  <blockquote>
  <p>Default principal: lrossi@TOPTIERRA.IT</p>
  </blockquote>
  <blockquote>
  <p>Valid starting       Expires              Service principal</p>
  </blockquote>
  <blockquote>
  <p>07/29/2016 17:30:56  07/30/2016 03:30:56  krbtgt/TOPTIERRA.IT@TOPTIERRA.IT
  renew until 08/05/2016 17:30:50</p>
  </blockquote>
  <blockquote>
  <p>$ ansible -m setup web -u lrossi@TOPTIERRA.IT</p>
  </blockquote>
  <blockquote>
  <p>trr-pp-wa1 | UNREACHABLE! =&gt; {</p>
  </blockquote>
  <blockquote>
  <p>&quot;changed&quot;: false,</p>
  </blockquote>
  <blockquote>
  <p>&quot;msg&quot;: &quot;ssl: 401 Unauthorized.&quot;,</p>
  </blockquote>
  <blockquote>
  <p>&quot;unreachable&quot;: true</p>
  </blockquote>
  <blockquote>
  <p>}</p>
  </blockquote>
  <p>Can anyone help me?</p>
  <p>Many thanks</p>