You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JVM property MUST be set before UGI is initialized.
54
56
@@ -62,7 +64,9 @@ Notes
62
64
63
65
You can turn Kerberos low-level logging on
64
66
65
-
-Dsun.security.krb5.debug=true
67
+
```
68
+
-Dsun.security.krb5.debug=true
69
+
```
66
70
67
71
This doesn't come out via Log4J, or `java.util logging;` it just comes out on the console. Which is somewhat inconvenient —but bear in mind they are logging at a very low level part of the system. And it does at least log.
68
72
If you find yourself down at this level you are in trouble. Bear that in mind.
@@ -72,15 +76,21 @@ If you find yourself down at this level you are in trouble. Bear that in mind.
72
76
73
77
If you want to debug what is happening in SPNEGO, another system property lets you enable this:
74
78
75
-
-Dsun.security.spnego.debug=true
79
+
```
80
+
-Dsun.security.spnego.debug=true
81
+
```
76
82
77
-
## Client side JAAS debugging
83
+
## Hadoop-side JAAS debugging
78
84
79
85
Set the env variable `HADOOP_JAAS_DEBUG` to true and UGI will set the "debug" flag on any JAAS
80
-
files it creates
86
+
files it creates.
81
87
82
-
export HADOOP_JAAS_DEBUG=true
88
+
You can do this on the client, before issuing a `hadoop`, `hdfs` or `yarn` command,
89
+
and set it in the environment script of a YARN service to turn it on there.
83
90
91
+
```
92
+
export HADOOP_JAAS_DEBUG=true
93
+
```
84
94
85
95
On the next Hadoop command, you'll see a trace like
86
96
@@ -162,7 +172,7 @@ Current consensus is no: you need DNS set up, or at least a consistent and valid
162
172
163
173
## Kerberos's defences against replay attacks
164
174
165
-
from the javadocs of `org.apache.hadoop.ipc.Client.handleSaslConnectionFailure()`:
175
+
From the javadocs of `org.apache.hadoop.ipc.Client.handleSaslConnectionFailure()`:
166
176
167
177
/**
168
178
* If multiple clients with the same principal try to connect to the same
Copy file name to clipboardExpand all lines: sections/web_and_rest.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
limitations under the License. See accompanying LICENSE file.
13
13
-->
14
14
15
-
# SPNEGO
15
+
# Web, REST and SPNEGO
16
16
17
17
SPNEGO is the acronym of the protocol by which HTTP clients can authenticate with a web site using Kerberos. This allows the client to identify and authenticate itself to a web site or a web service.
18
18
SPNEGO is supported by
@@ -29,6 +29,8 @@ Unlike, say Hadoop IPC, where the entire authentication code has been implemente
29
29
The sole source of information is the JDK source, and anything which IDE decompilers
30
30
can add if you end up stepping in to vendor-specific classes.
31
31
32
+
There is [one readme file](https://github.com/ddopson/openjdk-test/blob/master/sun/net/www/protocol/http/spnegoReadme) hidden in the test documentation.
0 commit comments