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

Commit bf0315d

Browse files
authored
fix(gssapi): check lowercase and camelCase gssapiServiceName option
Fixes NODE-1651
1 parent 7d3c057 commit bf0315d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/auth/gssapi.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ GSSAPI.prototype.auth = function(server, connections, db, username, password, op
4646
var self = this;
4747
// We don't have the Kerberos library
4848
if (Kerberos == null) return callback(new Error('Kerberos library is not installed'));
49-
var gssapiServiceName = options['gssapiServiceName'] || 'mongodb';
49+
// TODO: remove this once we fix URI parsing
50+
var gssapiServiceName = options['gssapiservicename'] || options['gssapiServiceName'] || 'mongodb';
5051
// Total connections
5152
var count = connections.length;
5253
if (count === 0) return callback(null, null);

0 commit comments

Comments
 (0)