|
Author:
{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}
Message: SERVER-11770 Support changing the default gssapiServiceName from the shell command line.
This patch allows the user to specify an alternate gssapiServiceName (default is mongodb)
when authenticating using GSSAPI/Kerberos. It also allows the user to specify the host
name to use for authentication purposes, when this does not match the DNS host name.
Both of these functions were previously exposed only through the db.auth() method,
and not for command-line authentication.
Branch: master
https://github.com/mongodb/mongo/commit/944807590b5d7a6a5b7b53f02bd032faf9406507
|
|
Note that the shell already supports setting the service name on auth requests, just not for authentications on the command line. Just add the "serviceName" argument to the params object you pass to db.auth. For example,
db.getSiblingDB("$external").auth({ user: "user@REALM", mechanism: "GSSAPI", serviceName: "altmongodb"});
|
|