Jonathan Turner hace 7 años
padre
commit
d84c1bef16
Se han modificado 2 ficheros con 25 adiciones y 1 borrados
  1. 1 1
      .travis.yml
  2. 24 0
      gssapi/README.md

+ 1 - 1
.travis.yml

@@ -17,7 +17,7 @@ services:
 before_install:
   - sudo apt-get install -yq krb5-user
   - sudo chmod 666 /etc/krb5.conf
-  - go get github.com/golang/lint/golint
+  - go get -u golang.org/x/lint/golint
   - docker run -d -h kdc.test.gokrb5 -v /etc/localtime:/etc/localtime:ro -e "TEST_KDC_ADDR=127.0.0.1" -p 53:53 -p 53:53/udp --name dns jcmturner/gokrb5:dns
   - docker run -d -h kdc.test.gokrb5 -v /etc/localtime:/etc/localtime:ro -p 88:88 -p 88:88/udp -p 464:464 -p 464:464/udp --name krb5kdc jcmturner/gokrb5:kdc-centos-default
   - docker run -d -h kdc.test.gokrb5 -v /etc/localtime:/etc/localtime:ro -p 78:88 -p 78:88/udp --name krb5kdc-old jcmturner/gokrb5:kdc-older

+ 24 - 0
gssapi/README.md

@@ -0,0 +1,24 @@
+# Notes on GSS-API Negotiation Mechanism
+https://tools.ietf.org/html/rfc4178
+
+Client sends an initial negotiation message to the server which specifies the list of mechanisms 
+the client can support in order of decreasing preference.
+This message is generated with the ``NewNegTokenInitKrb5`` method.
+The message generated by this function specifies only a kerberos v5 mechanism is supported.
+
+The RFC states that this message can optionally contain the initial mechanism token 
+for the preferred mechanism (KRB5 in this case) of the client. The ``NewNegTokenInitKrb5`` 
+includes this in the message.
+
+The server side responds to this message with a one of four messages:
+| Message Type/State | Description |
+|--------------------|-------------|
+| accept-completed | indicates that the
+                     initiator-selected mechanism was acceptable to the target, and that
+                     the security mechanism token embedded in the first negotiation
+                     message was sufficient to complete the authentication |
+| accept-incomplete | At least one more message is needed from the client to establish security context. |
+| reject | Negotiation is being terminated. |
+| request-mic | (this state can only be present in the first reply message from the target) 
+                indicates that the MIC token exchange is REQUIRED if per-message integrity 
+                services are available |