Skip to content

Commit 5f40338

Browse files
committed
CDRIVER-658 fix GSSAPI / Kerberos
The helpful error message code was wrong and unconditionally aborted GSSAPI conversations before they began. Even with the condition fixed, that path isn't hit when trying to connect to a server that doesn't support GSSAPI, so I'm just removing the code.
1 parent 71e32fe commit 5f40338

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/mongoc/mongoc-sasl.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,6 @@ _mongoc_sasl_step (mongoc_sasl_t *sasl,
300300
BSON_ASSERT (outbuf);
301301
BSON_ASSERT (outbuflen);
302302

303-
if (!sasl->step && !*outbuflen) {
304-
bson_set_error (error,
305-
MONGOC_ERROR_SASL,
306-
MONGOC_ERROR_CLIENT_AUTHENTICATE,
307-
"SASL Failure: no data received from SASL request. "
308-
"Does server have SASL support enabled?");
309-
return false;
310-
}
311-
312303
sasl->step++;
313304

314305
if (sasl->step == 1) {

0 commit comments

Comments
 (0)