From 804331d0e3a09afc76987880a53f57663de15a74 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Fri, 18 Apr 2014 23:17:28 +0000 Subject: [PATCH] Document new connection options - authMechanism - authSource - gssapiServiceName - secondaryAcceptableLatencyMS https://jira.mongodb.org/browse/PHP-1042 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333380 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongoclient/construct.xml | 82 +++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/reference/mongo/mongoclient/construct.xml b/reference/mongo/mongoclient/construct.xml index 951654d79b..fae203dcd4 100644 --- a/reference/mongo/mongoclient/construct.xml +++ b/reference/mongo/mongoclient/construct.xml @@ -90,6 +90,55 @@ mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db An array of options for the connection. Currently available options include: + + + "authMechanism" + + + Available mechanisms are: + + + + + authMechanism + Description + Availability + + + + + MONGODB-CR + Authenticate using Challenge Response mechanism. This is the default value. + All MongoDB versions + + + X509 + Authenticates using X509 certificates + MongoDB 2.6. Only available when is enabled + + + PLAIN + Authenticates using unencrypted plain username+password. Must be used over SSL connections. Generally used by MongoDB to login via 3rd party LDAP server + MongoDB Enterprise 2.4. The Driver must be compiled against CyrusSASL2 + + + GSSAPI + Authenticates via kerberos systems + MongoDB Enterprise 2.4. The Driver must be compiled against CyrusSASL2 + + + + + + + + + "authSource" + + + Should be set to the database name where the user is defined it. + + "connect" @@ -172,6 +221,14 @@ mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db + + + "gssapiServiceName" + + + Sets the Kerberos service principal. Only applicable when authMechanism=GSSAPI. Defaults to "mongodb". + + "password" @@ -227,6 +284,15 @@ mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db See the replica set example below for details. + + + "secondaryAcceptableLatencyMS" + + + When reading from a secondary (using ReadPreferences), do not read from secondaries known to be more then + secondaryAcceptableLatencyMS away from us. Defaults to 15 + + "socketTimeoutMS" @@ -604,6 +670,14 @@ $m = new MongoClient( + + 1.5.0 + + + Added "authMechanism", "gssapiServiceName", and "secondaryAcceptableLatencyMS". + + + 1.4.0 @@ -617,6 +691,14 @@ $m = new MongoClient( + + 1.5.0 + + + Added "authSource". + + + 1.3.4