Comments (6)
For the sake of completion, here's the login-password-less.php
file that allows password-less access. For DBs without password, enter admin
as the password.
<?php
require_once('plugins/login-password-less.php');
/** Set allowed password
* @param string result of password_hash
*/
return new AdminerLoginPasswordLess(
$password_hash = password_hash("admin", PASSWORD_DEFAULT)
);
from docker-adminer.
Am I missing something ?
Yes. The ADMINER_PLUGINS
environment variable is needed for the “autoloader” that set's up the file in plugins-enabled
automatically. If you create the file yourself you must not add the plugin to the environment, because it would be overridden.
from docker-adminer.
PASSWORD_DEFAULT is global php variable, or docker environment variable, or placeholder for us to change?
That is a PHP constant to indicate the password hashing algorithm to use. Adminer expects a hashed password and that call will create a valid hash ad-hoc. As of right now PASSWORD_DEFAULT
will result in a BCrypt hash:
php > var_dump(password_hash("admin", PASSWORD_DEFAULT));
php shell code:1:
string(60) "$2y$10$BsmC9NHuyjlOWyt9Q5FVA.WL/6lvZCZAdNF0wr9vLAA.s5SaU7xQq"
You must not replace that constant.
from docker-adminer.
is it USER adminer in your dockerfile necessary?
Because i did the same thing and it didnt work.
I used this scritp:
require_once('plugins/login-password-less.php');
/** Set allowed password
* @param string result of password_hash
*/
return new AdminerLoginPasswordLess(
$password_hash = password_hash("admin", PASSWORD_DEFAULT)
);
I just didn't add USER in my dockerfile as you
from docker-adminer.
is it USER adminer in your dockerfile necessary?
The USER
within the Dockerfile is used to run the container as a restricted system user. It has nothing to do with the database user or a login username. So yes, the USER adminer
is necessary.
from docker-adminer.
PASSWORD_DEFAULT is global php variable, or docker environment variable, or placeholder for us to change?
from docker-adminer.
Related Issues (20)
- htpassword access HOT 1
- apk not found HOT 3
- Increase allowed memory HOT 4
- [bug fix] designs/hydra/adminer.css missing, ADMINER_DESIGN: hydra HOT 3
- FYI regarding upstream project status HOT 3
- adminer:4.8.1 | adminer:4.8.1-standalone missing ping curl tools HOT 1
- Security: PHP version HOT 3
- Invalid CSRF token. Send the form again. If you did not send this request from Adminer then close this page. HOT 1
- Sub Queries in search are not executed HOT 1
- Please add an Environment variable which will change the default WebUI port HOT 3
- New 4.8.1 version breaks healthchecks HOT 1
- Cannot add additional php packages in Docker image
- Specifying multiple sets of credentials HOT 2
- how to login sqlite file without password? HOT 1
- Add MariaDB for Supported Driver
- /tiny_mce/tiny_mce.js 404
- [bug] ADMINER_DESIGN: hydra, not show all columns if too much HOT 1
- Getting a "attempt to write a readonly database" error for SQLite db HOT 1
- ADMINER_DEFAULT_SERVER does not work in fastcgi mode
- where to find all support env param?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-adminer.