MongoDBAuthentication coding group

This code group defines the options for MongoDB Authentication modes (currently MongoDB 2.6).

Lua access code

To access the code of the codings below, append the coding group name and coding name to inmation.model.codes, see an example below.

return inmation.model.codes.MongoDBAuthentication.MONGAUTH_AUTO

Codings

Name Code Description
MONGAUTH_AUTO 7 Detect the default authentication mechanism for users with stored SCRAM-SHA-1 and SCRAM-SHA-256 credentials (requires MongoDB 4.0 or newer)
MONGAUTH_CR 2 MONGODB-CR is the default authentication mechanism supported by MongoDB. Username and Password needs to be provided
MONGAUTH_LDAP 5 Lightweight Directory Access Protocol (LDAP) service is used for MongoDB authentication
MONGAUTH_NONE 1 No Authentication is performed when the System connects to a certain instance of MongoDB
MONGAUTH_SCRAM_SHA_1 3 Salted Challenge Response Authentication Mechanism (SCRAM) means that the password is never actually sent over the wire, but rather a computed proof that the client password is the same as the password the server knows.
MONGAUTH_SCRAM_SHA_256 6 SCRAM-SHA-256 authentication means that the password is never actually sent over the wire, but rather a computed proof that the client password is the same as the password the server knows (non-ASCII characters in passwords are not supported).
MONGAUTH_X509 4 MONGODB-X509 mechanism authenticates a username derived from the distinguished subject name of a X.509 certificate