Thanks a lot for that hint Konstantin.
It was a basic issue and a human error.
Below entry was commented out in HTTP configuration file. So, it was not
even asking the user name and it breaks.
Thanks a lot once again...
On Tuesday, February 26, 2013 4:57:50 PM UTC+5:30, Konstantin Khomoutov
> 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/22.214.171.124
> > 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
> authentication mechanisms.
> 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/126.96.36.199"
> 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.
> 1. http://paperlined.org/apps/git/SmartHTTP_Ubuntu.html
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.