Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix(gssapi): check lowercase and camelCase gssapiServiceName option
Browse files Browse the repository at this point in the history
Fixes NODE-1651
  • Loading branch information
kvwalker committed Sep 7, 2018
1 parent 7d3c057 commit bf0315d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/auth/gssapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ GSSAPI.prototype.auth = function(server, connections, db, username, password, op
var self = this;
// We don't have the Kerberos library
if (Kerberos == null) return callback(new Error('Kerberos library is not installed'));
var gssapiServiceName = options['gssapiServiceName'] || 'mongodb';
// TODO: remove this once we fix URI parsing
var gssapiServiceName = options['gssapiservicename'] || options['gssapiServiceName'] || 'mongodb';
// Total connections
var count = connections.length;
if (count === 0) return callback(null, null);
Expand Down

0 comments on commit bf0315d

Please sign in to comment.