Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support unix_socket authentication and passwordless #4112

Open
MathiasSven opened this issue May 23, 2024 · 1 comment
Open

Support unix_socket authentication and passwordless #4112

MathiasSven opened this issue May 23, 2024 · 1 comment
Labels
Feature Request Requests for Features

Comments

@MathiasSven
Copy link

Feature Description: It would be easier for deployment if dynmap supported either logging in without a password, or using the unix_socket authentication method that is based on the user running the service (in this case minecraft most likely), though I think unix_socket is MariaDB only. For the former, I don't see a problem in not having a password for a local only account that has access to the Dynmap database only.

Additional Context: I tried to do both unix_socket authentication and a user with no password, and on both of these, even when I comment out the password in configuration.txt for the storage section, dynmap seems to still try to connect to the database using a password:

Access denied for user 'minecraft'@'localhost' (using password: YES)

So that is why I assume the only way to log into the database currently is using a password.

@MathiasSven MathiasSven added the Feature Request Requests for Features label May 23, 2024
@JurgenKuyper
Copy link
Collaborator

you are right:
password = core.configuration.getString("storage/password", "dynmap");
if not defined, default to dynmap as passswordstring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Requests for Features
Projects
None yet
Development

No branches or pull requests

2 participants