title: GitLab v6.2.0.pre 666849b - Access Denied when cloning via ssh
body: <h3>UPDATE</h3>
  
  <p>This is user-specific.  when I curl the url </p>
  
  <pre><code>http://localhost//api/v3/internal/allowed?key_id=22&amp;action=git-upload-pack&amp;ref=_any&amp;project=analytics/dns-website
  </code></pre>
  
  <p>from the GitLab server using id 22, the response if "false". If I change the key_id to that of another user, the response is "true"</p>
  
  <hr>
  
  <p>Whenever I clone an existing git repo (or push/pull from remote) using my LDAP credentials, I get the error:</p>
  
  <p><code>Access denied.
  fatal: The remote end hung up unexpectedly
  </code></p>
  
  <p>LDAP users in other domains are not affected.</p>
  
  <p>I removed and re-added a public key to my GitLab profile and I can successfully test the ssh connection:</p>
  
  <pre><code>#ssh -vT git@git.mysite.com
  
  OpenSSH_5.9p1, OpenSSL 0.9.8y 5 Feb 2013
  ...
  Welcome to GitLab, Keith Harris!
  ...
  debug1: Exit status 0
  </code></pre>
  
  <h2>gitlab-shell.log reports the following error:</h2>
  
  <blockquote>
    <p>W, [2013-10-15T16:55:43.226875 #23590]  WARN -- : gitlab-shell: Access denied for git command &lt;git-upload-pack 'analytics/dns-website.git'> by user with key key-22.</p>
  </blockquote>