Ticket #497 (closed defect: fixed)
maiadbtool.pl doesn't observe the auto-issue passwords flag
| Reported by: | rjl | Owned by: | rjl |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.3 |
| Component: | Perl scripts | Version: | 1.0.2 |
| Severity: | normal | Keywords: | maiadbtool.pl auto-issue passwords |
| Cc: |
Description
When new users are added with maiadbtool.pl and internal authentication is used, temporary passwords are generated and a welcome email is issued to these new users, even if the auto-issue passwords flag is not set.
This is because of the unfortunate naming of a variable called internal_auth, which is a column in the maia_config table set by the "Auto-issue passwords to new accounts" feature on the System Configuration page. The maiadbtool.pl script should be checking maia_config.internal_auth, but instead it is mistakenly checking $auth_method, which is set in maia.conf and means something altogether different.
In the longer term, maia_config.internal_auth really needs to be renamed to something more accurate, e.g. maia_config.issue_passwords.

