git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* REMOTE_USER value propagation through http push
@ 2011-04-13  9:48 Axel
  2011-04-13 11:00 ` Jakub Narebski
  0 siblings, 1 reply; 8+ messages in thread
From: Axel @ 2011-04-13  9:48 UTC (permalink / raw)
  To: git

Hello

I set up a git server with HTTP authentication with Apache through LDAP 
(Debian Squeeze + Apache 2.2 + mod_authnz_ldap).

I m using gitweb for browsing the repositories. At this moment, the 
commiter name appears to be the local user who called "git push". The 
username used for HTTP authentication is not used as commiter name, 
though the REMOTE_USER environment variable is defined.

After a quick look at http-backend.c it looks like the GIT_COMMITER_NAME 
variable should have been defined with the REMOTE_USER variable. Is this 
right ?

In Apache access logs, the REMOTE_USER appears to be defined in the last 
request of the push :

127.0.1.1 - - [13/Apr/2011:11:45:08 +0200] "GET 
/git/sandbox/info/refs?service=git-receive-pack HTTP/1.1" 200 467 "-" 
"git/1.7.2.5"
127.0.1.1 - - [13/Apr/2011:11:45:08 +0200] "POST 
/git/sandbox/git-receive-pack HTTP/1.1" 401 618 "-" "git/1.7.2.5"
127.0.1.1 - ldapuser [13/Apr/2011:11:45:08 +0200] "POST 
/git/sandbox/git-receive-pack HTTP/1.1" 200 353 "-" "git/1.7.2.5"

Is this behaviour expected ?

Thanks

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-04-13 16:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13  9:48 REMOTE_USER value propagation through http push Axel
2011-04-13 11:00 ` Jakub Narebski
2011-04-13 11:21   ` axel.ml
2011-04-13 12:53     ` Jakub Narebski
2011-04-13 13:39       ` axel.ml
2011-04-13 14:27         ` Jakub Narebski
2011-04-13 14:58           ` axel.ml
2011-04-13 16:32             ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).