    LogFile         = GetTempFileName("txt");
    LoggingSettings = OPI_MongoDB.GetLoggingSettings(True, 100, LogFile);

    Address  = "127.0.0.1:1234";
    Login    = "bayselonarrend";
    Password = "12we...";

    ConnectionParams = New Structure("authSource", "admin");
    ConnectionString = OPI_MongoDB.GenerateConnectionString(Address, , Login, Password, ConnectionParams);

    Connection = OPI_MongoDB.CreateConnection(ConnectionString, LoggingSettings);

    If Not OPI_MongoDB.IsConnector(Connection) Then
        Raise OPI_Tools.JSONString(Connection);
    EndIf;

    Result = OPI_MongoDB.ExecuteCommand(Connection, "listDatabases", , , New Structure("nameOnly", True));

    Result = OPI_MongoDB.GetLog(Connection);