Skip to content

Commit

Permalink
SERVER-22054 Report client address in authentication failure error
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerjackson committed Jan 6, 2016
1 parent 4d59d95 commit e3615ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/db/auth/sasl_commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Status doSaslStep(const ClientBasic* client,
status = session->step(payload, &responsePayload);

if (!status.isOK()) {
const SockAddr clientAddr = client->port()->localAddr();
const SockAddr clientAddr = client->port()->remoteAddr();
log() << session->getMechanism() << " authentication failed for "
<< session->getPrincipalId() << " on " << session->getAuthenticationDatabase()
<< " from client " << clientAddr.getAddr() << " ; " << status.toString() << std::endl;
Expand Down

0 comments on commit e3615ee

Please sign in to comment.