git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* GSS-Negotiate authentication requires that all data fit into postbuffer
@ 2013-10-06  0:42 brian m. carlson
  2013-10-06 10:50 ` Ilari Liusvaara
  0 siblings, 1 reply; 8+ messages in thread
From: brian m. carlson @ 2013-10-06  0:42 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1639 bytes --]

One thing I just noticed is that if git is using GSS-Negotiate
authentication, the entire POST contents have to fit into however much
memory is specified by http.postbuffer:

  vauxhall ok % git push https://bmc@git.crustytoothpaste.net/git/bmc/test.git development
  Counting objects: 37994, done.
  Delta compression using up to 4 threads.
  Compressing objects: 100% (10683/10683), done.
  Writing objects: 100% (37994/37994), 9.15 MiB | 4.45 MiB/s, done.
  Total 37994 (delta 26760), reused 37633 (delta 26467)
  Unable to rewind rpc post data - try increasing http.postBuffer
  Password for 'https://bmc@git.crustytoothpaste.net': 

GSS-Negotiate authentication always requires a rewind with CURL.

The remote in question only supports Negotiate authentication, so
prompting for a password in this case isn't going to help.  I'm probably
going to look into this over the next couple of days, but two things
need to be done here: 1) do not prompt for a password if only Negotiate
authentication is requested, since it just won't work, and 2) recreate
the data as needed if we have to rewind, since otherwise pushing a fresh
copy of the Linux kernel repo simply isn't going to work as the buffer
will have to be too large.  An alternative is to send a small amount of
data, smaller than the postbuffer, in the first chunk and only fail to
rewind if the second or subsequent chunks need rewinding.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2013-10-07 22:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-06  0:42 GSS-Negotiate authentication requires that all data fit into postbuffer brian m. carlson
2013-10-06 10:50 ` Ilari Liusvaara
2013-10-06 15:00   ` Daniel Stenberg
2013-10-06 15:29     ` brian m. carlson
2013-10-06 15:38       ` Daniel Stenberg
2013-10-06 17:50         ` brian m. carlson
2013-10-07 12:02           ` Jeff King
2013-10-07 22:56             ` brian m. carlson

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).