Sunday 15 May 2011

mongodb - Authentication in Mongo db: how to choice? -



mongodb - Authentication in Mongo db: how to choice? -

could help me selection type of authentication in mongo db?

on official site found:

mongodb-cr mongodb challenge/response authentication. mongodb-x509 mongodb ssl certificate authentication. plain external authentication using ldap. can utilize plain authenticating in-database users. plain transmits passwords in plain text. mechanism available in mongodb enterprise. gssapi external authentication using kerberos. mechanism available in mongodb enterprise.

thank lot!

as mentioned before of options available in enterprise versions of mongodb.

as necessary, external authentication methods, determined needs of organization--whether existing ldap infrastructure depended on user administration.

in mongodb 3.0, supports multiple authentication mechanisms.

mongodb challenge , response (scram-sha-1) - default in 3.0 mongodb challenge , response (mongodb-cr) - previous default (< 3.0)

if started new 3.0 database new users created, have been created using scram-sha-1.

so need driver capable of authentication:

http://docs.mongodb.org/manual/release-notes/3.0-scram/#considerations-scram-sha-1-drivers

if had database upgraded 2.x existing user data, still using mongodb-cr, , user authentication database have upgraded:

http://docs.mongodb.org/manual/release-notes/3.0-scram/#upgrade-mongodb-cr-to-scram

now, connecting mongodb 3.0 users created scram-sha-1 required specify authentication database (via command line mongo client), , using other mechanisms if using driver.

$> mongo -u user -p password --authenticationdatabase admin

in case, "admin" database, default used authenticate.

mongodb authentication choice

No comments:

Post a Comment