Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Issue 3013003: Don't do Negotiate with GSSAPI if default credentials are not allowed. (Closed)

Created:
10 years, 5 months ago by cbentzel
Modified:
9 years, 7 months ago
Reviewers:
ahendrickson
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Don't do Negotiate with GSSAPI if default credentials are not allowed. GSSAPI does not provide a mechanism for the user to specify username/password to obtain a TGT. If default credentials are not allowed for an end site, skip negotiate and use a different scheme. Arguably in this case it may make sense to simply prompt the user whether they want to use their existing Kerberos credentials to authenticate to the server and use the existing TGT, but we'll need UI changes. BUG=33033 TEST=net_unittests, try to authenticate to a Kerberized server which is not in the whitelist. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52943

Patch Set 1 #

Patch Set 2 : Fixed unit tests. #

Total comments: 4

Patch Set 3 : Fix style nit. #

Patch Set 4 : Negotiate work. #

Patch Set 5 : Merged and fixed newly enabled unit tests. #

Patch Set 6 : Merged with trunk. #

Patch Set 7 : Hack to make the patch work correctly. #

Total comments: 5

Patch Set 8 : Fix some nits. #

Patch Set 9 : Windows fix for unit test. #

Patch Set 10 : Some win fix and cleanup. #

Patch Set 11 : Building on windows. #

Patch Set 12 : One more win fix. #

Patch Set 13 : Remove anonymous namespace to make OSX build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -206 lines) Patch
M net/http/http_auth_handler_factory_unittest.cc View 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M net/http/http_auth_handler_negotiate.h View 5 6 7 5 chunks +21 lines, -33 lines 0 comments Download
M net/http/http_auth_handler_negotiate.cc View 1 2 3 4 5 6 7 5 chunks +17 lines, -17 lines 0 comments Download
M net/http/http_auth_handler_negotiate_unittest.cc View 4 5 6 7 8 9 10 11 12 5 chunks +170 lines, -152 lines 0 comments Download
M net/http/http_auth_unittest.cc View 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M net/http/url_security_manager.h View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
cbentzel
I think this all that is needed to bypass Negotiate authentication when the server is ...
10 years, 5 months ago (2010-07-15 21:59:11 UTC) #1
ahendrickson
LGTM On 2010/07/15 21:59:11, cbentzel wrote: > I think this all that is needed to ...
10 years, 5 months ago (2010-07-15 22:02:17 UTC) #2
cbentzel
Well, this isn't LG yet - it has some issues with unit tests as it ...
10 years, 5 months ago (2010-07-15 22:36:43 UTC) #3
cbentzel
OK, net_unittests pass and this works as I expected when I built Chrome.
10 years, 5 months ago (2010-07-16 02:05:07 UTC) #4
cbentzel
I changed a few unit tests to have a permissive URLSecurityManager so this works without ...
10 years, 5 months ago (2010-07-16 18:53:27 UTC) #5
ahendrickson
LGTM, just a few nits. http://codereview.chromium.org/3013003/diff/6001/7001 File net/http/http_auth_handler_factory.cc (right): http://codereview.chromium.org/3013003/diff/6001/7001#newcode119 net/http/http_auth_handler_factory.cc:119: Why the extra space? ...
10 years, 5 months ago (2010-07-16 19:42:43 UTC) #6
cbentzel
http://codereview.chromium.org/3013003/diff/6001/7001 File net/http/http_auth_handler_factory.cc (right): http://codereview.chromium.org/3013003/diff/6001/7001#newcode119 net/http/http_auth_handler_factory.cc:119: On 2010/07/16 19:42:43, ahendrickson wrote: > Why the extra ...
10 years, 5 months ago (2010-07-16 21:19:17 UTC) #7
cbentzel
Andy, I changed this CL a bit since the last LGTM, mainly because this broke ...
10 years, 5 months ago (2010-07-17 16:19:55 UTC) #8
ahendrickson
LGTM, other than a few nits. http://codereview.chromium.org/3013003/diff/28001/16005 File net/http/http_auth_handler_negotiate.cc (right): http://codereview.chromium.org/3013003/diff/28001/16005#newcode28 net/http/http_auth_handler_negotiate.cc:28: #if defined(OS_POSIX) #elif ...
10 years, 5 months ago (2010-07-18 00:40:56 UTC) #9
cbentzel
Thanks for the review. Now I need to understand why the trybots are having difficulty ...
10 years, 5 months ago (2010-07-18 11:44:18 UTC) #10
cbentzel
This required a number of changes in http_auth_handler_negotiate_unittest.cc to make the different platforms happy. Please ...
10 years, 5 months ago (2010-07-19 17:44:49 UTC) #11
ahendrickson
10 years, 5 months ago (2010-07-19 19:40:37 UTC) #12
LGTM.

On 2010/07/19 17:44:49, cbentzel wrote:
> This required a number of changes in http_auth_handler_negotiate_unittest.cc
to
> make the different platforms happy. Please take another look at that file (the
> others have stayed consistent).

Powered by Google App Engine
This is Rietveld 408576698