title: git push error: RPC failed; result=22, HTTP code = 403
body: <p>I am trying to push my code from client(git bash) to git linux server with ldap authentication and it fails with below error</p>
  
  <pre><code>$ git push -u origin master
  Counting objects: 5, done.
  Writing objects: 100% (3/3), 279 bytes | 0 bytes/s, done.
  Total 3 (delta 0), reused 0 (delta 0)
  error: RPC failed; result=22, HTTP code = 403
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly
  Everything up-to-date
  </code></pre>
  
  <p>Below is my virtual host entry</p>
  
  <pre><code>&lt;VirtualHost &lt;server ip&gt;&gt;
  ServerName &lt;server name&gt;
  LogLevel Debug
  SetEnv GIT_PROJECT_ROOT /var/opt/git/repos
  SetEnv GIT_HTTP_EXPORT_ALL
  SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
  ScriptAlias /git /usr/libexec/git-core/git-http-backend
  
  &lt;Directory "/usr/libexec/git-core*"&gt;
     Options ExecCGI Indexes
     Order allow,deny
     Allow from all
  &lt;/Directory&gt;
  &lt;LocationMatch "^/git/.*/git-receive-pack$"&gt;
          Order deny,allow
          Deny from All
          AuthName "GIT Repo"
          AuthType Basic
          AuthBasicProvider ldap
          AuthzLDAPAuthoritative off
          AuthLDAPURL "ldaps://&lt;servername&gt;:501/ou=abc,dc=gd,dc=abcldap"
          Require valid-user
  &lt;/LocationMatch&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I am seeing below error in apache logs </p>
  
  <pre><code>[error] [client 10.112.111.25] client denied by server configuration: /usr/libexec/git-core/git-http-backend
  </code></pre>
  
  <p>Not sure what is going wrong. Is it ldap connection error or git error. I just have 2 files in my project. I am able to clone. Your help would be much appreciated.</p>
  
  <p>Thanks.</p>