1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 09:04:02 +02:00

setup Mongo authSource by ENV

This commit is contained in:
František Hána
2019-08-15 14:54:47 +02:00
committed by Jakub Vrana
parent b07908282b
commit 34a0bfd939
2 changed files with 4 additions and 0 deletions

View File

@@ -618,6 +618,9 @@ if (isset($_GET["mongo"])) {
if ($db != "") {
$options["db"] = $db;
}
if (($auth_source = getenv("MONGO_AUTH_SOURCE"))) {
$options["authSource"] = $auth_source;
}
try {
$connection->_link = $connection->connect("mongodb://$server", $options);
if ($password != "") {

View File

@@ -8,6 +8,7 @@ SQLite: Handle error in altering table (bug #697)
SQLite: Allow setting auto increment for empty tables
SQLite: Preserve auto increment when recreating table
MS SQL: Support foreign keys to other DB
MongoDB: Allow setting authSource from environment variable
Adminer 4.7.2 (released 2019-07-18):
Do not attempt logging in without password (bug #676)