On Mon, 25 Feb 2013 22:47:15 -0800 (PST)
> I am getting error while pushing the committed changes in GIT
> repository using LDAP authentication.
> [root@imsgit imstest_ldap]# git push
> * Couldn't find host 10.142.201.122 in the .netrc file; using defaults
> * About to connect() to 10.142.201.122 port 8080 (#0)
> * Trying 10.142.201.122... * connected
> * Connected to 10.142.201.122 (10.142.201.122) port 8080 (#0)
> > GET /git/imstest_ldap.git/info/refs?service=git-receive-pack
> > HTTP/1.1
> User-Agent: git/220.127.116.11
> Host: 10.142.201.122:8080
> Accept: */*
> Accept-Encoding: gzip
> Pragma: no-cache
> * The requested URL returned error: 403
> * Closing connection #0
> error: The requested URL returned error: 403 while accessing
> fatal: HTTP request failed
> [root@imsgit imstest_ldap]#
Note that if authentication was really enabled on the server, you'd
receive "401 Unauthorized" and a header (or headers) listing available
Instead, the server just rejected the request with 403.
> HTTP logs are as below
> ==> error_log <==
> [Mon Feb 25 12:40:04 2013] [error] [client 10.142.201.122] Service
> not enabled: 'receive-pack'
> ==> access_log <==
> 10.142.201.122 - - [25/Feb/2013:12:40:04 +0530] "GET
> /git/imstest_ldap.git/info/refs?service=git-receive-pack HTTP/1.1"
> 403 - "-" "git/18.104.22.168"
As usually, I googled for the precise error message and towards the end
of  I read:
If you see this in Apache's error_log:
Service not enabled: 'receive-pack'
This means that $REMOTE_USER isn't set — that is, user-authentication
failed. Git-http-backend needs the $REMOTE_USER to be set in order to
record who did the PUSH.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.