Enumeration auth

Authentication mode when user/password is defined.

Note: The Node.js client's TLS support is currently limited to Linux, and therefore secure, external authentication (e.g. LDAP) is only supported on Linux as well. External authentication can be used on macOS or Windows but it will not be secure!

const Aerospike = require('aerospike')

const config = {
user: process.env.ADMIN_USER,
password: process.env.ADMIN_PASSWORD,
authMode: Aerospike.auth.EXTERNAL
}
const Aerospike = require('aerospike')

const config = {
hosts: [
{ addr: 'bob-cluster-a', port: process.env.PORT}
],
tls: {
cafile: process.env.CAFILE,
keyfile: process.env.KEYFILE,
certfile: process.env.CERT,
}
authMode: Aerospike.auth.AUTH_PKI,
}


Aerospike.connect(config).then(async (client) => {
const info = await client.infoAny().then(Aerospike.info.parse)
console.info(info)
client.close()
})

Enumeration Members

AUTH_PKI: number

Use PKI authentication. Authentication and authorization is based on a certificate. No user name or password needs to be configured. Requires mTLS and a client certificate.

EXTERNAL: number

Use external authentication (like LDAP). Specific external authentication is configured on server. If TLS is enabled, send clear password on node login via TLS. Throws exception, if TLS is not enabled.

EXTERNAL_INSECURE: number

Use external authentication (like LDAP). Specific external authentication is configured on server. Send clear password on node login whether or not TLS is enabled. This mode should only be used for testing purposes because it is not secure authentication.

INTERNAL: number

Use internal authentication only. Hashed password is stored on the server. Do not send clear password. This is the default.

MMNEPVFCICPMFPCPTTAAATR