Skip to content

Commit 4934d52

Browse files
committed
GODRIVER-831: don't pass empty payload when beginning GSSAPI negotiation.
1 parent 3fc0cdb commit 4934d52

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

x/mongo/driver/auth/internal/gssapi/gss.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ func (sc *SaslClient) Start() (string, []byte, error) {
9494
return mechName, nil, sc.getError("unable to initialize client")
9595
}
9696

97-
return mechName, nil, nil
97+
payload, err := sc.Next(nil)
98+
99+
return mechName, payload, err
98100
}
99101

100102
func (sc *SaslClient) Next(challenge []byte) ([]byte, error) {

x/mongo/driver/auth/internal/gssapi/sspi.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ func (sc *SaslClient) Start() (string, []byte, error) {
109109
return mechName, nil, sc.getError("unable to intitialize client")
110110
}
111111

112-
return mechName, nil, nil
112+
payload, err := sc.Next(nil)
113+
114+
return mechName, payload, err
113115
}
114116

115117
func (sc *SaslClient) Next(challenge []byte) ([]byte, error) {

0 commit comments

Comments
 (0)