Upgrade 1.1 -> 1.3 + BasicAuth

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
dcburleigh
Posts: 4
Joined: 28 Nov 2016, 00:14

Upgrade 1.1 -> 1.3 + BasicAuth

Post by dcburleigh »

We recently got around to upgrading from our initial 1.1 installation to 1.3.

The only tricky part was the Authentication piece, because we had hacked up the source code to use BasicAuth. So this post is just to share our experience.

Basically we followed the Upgrade instructions, up to the creation of the new config file.

At this point I can't log in, because logins relied on BasicAuth. I want to install the BasicAuth plugin[1], but I can't install it unless I log in as an administrator. Catch-22!

Eventually I realized that the original administrator user still had an unencrypted password. So the solution was
*) edit config/config_inc.php, set
$g_login_method = PLAIN;
*) login as the administrator
*) install the BasicAuth plugin,
*) edit config/config_inc.php, and set
$g_login_method = BASIC_AUTH;
$g_allow_signup = OFF;
$g_allow_anonymous_login = OFF;
$g_anonymous_account = '';
$g_validate_email = OFF;

After that everything seemed to work just fine.

[1] https://github.com/davewood/mantis-basic-auth
We are using the alternate version in Pull Request #2, to enable auto-create of users.
Post Reply