mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 01:45:58 +03:00
[GH-ISSUE #1297] Remote SQL authentication #1045
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1045
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arduino43 on GitHub (Nov 14, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1297
Impacted versions
Steps to reproduce
Run installer with 'installer.cfg' the following options set:
engine = mysql
host = 1.1.1.1
Current behavior
When using a remote SQL server Modoboa fails. Some tables are not created for each database - spamassassin, amavis and modoboa. It appears that at some point during the installation script modoboa sets the SQL account to use 'modoboa@localhost', causing the remote SQL server to reject authentication attempts.
Does Modoboa support remote SQL server authentication?
@tonioo commented on GitHub (Mar 9, 2018):
@arduino43 The database users are creating using this method: https://github.com/modoboa/modoboa-installer/blob/master/modoboa_installer/database.py#L174. I'm not a mariadb/mysql expert but the installer does create a rule for @% which is supposed to allow connection from anywhere, right?
@kryskool commented on GitHub (Mar 24, 2018):
ping @arduino43
@arduino43 commented on GitHub (Mar 31, 2018):
but is Modoboa using that account? I haven't checked in quite some time, but I vaguely remember that it did create the account, it just didn't use it after installation.
@tonioo commented on GitHub (Apr 6, 2018):
Yes it is. And tables were missing in every database? That's very strange because I don't see why some tables would created... If it's an authentication issue, nothing should be created.