From 6ca2f8483f5cd6c22362dbbe9353524162ed8d54 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 3 Dec 2007 13:40:11 +0000 Subject: [PATCH] Add missing documentation for SSPI packets. --- doc/src/sgml/protocol.sgml | 68 ++++++++++++++++++++++++++++++++++---- 1 file changed, 62 insertions(+), 6 deletions(-) diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 5ae7a7293f..b483127519 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1,4 +1,4 @@ - + Frontend/Backend Protocol @@ -230,10 +230,10 @@ The server then sends an appropriate authentication request message, to which the frontend must reply with an appropriate authentication response message (such as a password). - For all authentication methods except GSSAPI, there is at most + For all authentication methods except GSSAPI and SSPI, there is at most one request and one response. In some methods, no response at all is needed from the frontend, and so no authentication request - occurs. For GSSAPI, multiple iterations of packets may be needed to + occurs. For GSSAPI and SSPI, multiple iterations of packets may be needed to complete the authentication. @@ -344,13 +344,26 @@ + + AuthenticationSSPI + + + The frontend must now initiate a SSPI negotiation. The frontend + will send a PasswordMessage with the first part of the SSPI + data stream in response to this. If further messages are needed, + the server will respond with AuthenticationGSSContinue. + + + + AuthenticationGSSContinue This message contains the response data from the previous step - of GSSAPI negotiation (AuthenticationGSS or a previous - AuthenticationGSSContinue). If the GSSAPI data in this message + of GSSAPI or SSPI negotiation (AuthenticationGSS, AuthenticationSSPI + or a previous AuthenticationGSSContinue). If the GSSAPI + or SSPI data in this message indicates more data is needed to complete the authentication, the frontend must send this data as another PasswordMessage. If GSSAPI authentication is completed by this message, the server @@ -1706,6 +1719,49 @@ AuthenticationGSS (B) + + +AuthenticationSSPI (B) + + + + + + + + Byte1('R') + + + + Identifies the message as an authentication request. + + + + + + Int32(8) + + + + Length of message contents in bytes, including self. + + + + + + Int32(9) + + + + Specifies that SSPI authentication is required. + + + + + + + + AuthenticationGSSContinue (B) @@ -1750,7 +1806,7 @@ AuthenticationGSSContinue (B) - GSSAPI authentication data. + GSSAPI or SSPI authentication data. -- 2.40.0