Skip to content

Commit dae3e43

Browse files
CXX-404 Inform user that auth may need --ssl
1 parent 02faeb8 commit dae3e43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/mongo/client/dbclient.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,10 @@ namespace mongo {
914914
uassertStatusOK(saslClientAuthenticate(this, params));
915915
}
916916
else {
917-
uasserted(ErrorCodes::BadValue,
918-
mechanism + " mechanism support not compiled into client library.");
917+
std::string error = mechanism + " mechanism support not compiled into client library."
918+
" (Some mechanisms require the driver be compiled"
919+
" with the flags --ssl or --use-sasl-client)";
920+
uasserted(ErrorCodes::BadValue, error);
919921
}
920922
};
921923

0 commit comments

Comments
 (0)