Don't know, if I should call it a bug. I had several problems to get a clone of isfdb running, using latest mariadb and mediawiki 1.35.2, but at least managed.
During inserting the dump of backup-MySQL-55-2021-04-24 I saw the creation of the table mw_user using a field "user_options blob NOT NULL,", which has been removed since mediawiki 1.19.
The installation instructions of isfdb are a little bit out of date, so I run the mysql restore first, and then mediawiki 1.35.2. Mediawiki installer saw the already installed ISFDB and runs maintenance upgrade, which removes mw_options and inserts user_password_expires. Update went smooth.
Note: my installation runs mariadb 10.3 and mediawiki 1.35.2 currently without problems.
I had to run some sql-replace-commands to get local installed images been accessed. maybe one should update the instructions.
Note: there is another discrepancy, which I forgot. Will make a note, if I find it again.
Anonymous
mediawiki version newer than 1.24 (?) uses pbkdf2 for authentication. The password hash is stored like the following example:
example
The following code can be used to add authentication for mediawiki 1.35.2 in submitlogin.cgi
and around line 55
Well, can be shortened.
Works within my clone of isfdb: mariadb 10.3.24, python 2.7, apache 2.4 on OpenIndiana (Solaris, SunOS illumos 5.11)
Last edit: Klaus Elsbernd 2021-09-15
Ticket moved from /p/isfdb/bugs/770/
I have asked MartyD to take a look when he has a free moment -- http://www.isfdb.org/wiki/index.php/User_talk:MartyD#MediaWiki_upgrade
submitlogin.py: I had to change the if statement which decides if md5-hash or pdk2-hash is used: I splitted the hash form MediaWiki into fields with separation character ':'. Since reference to the 2nd field results in a python error, I had to check the size of the split-result. Since I had no md5 hash in my database any more, I overlooked the problem.
So I edited my previous post and corrected the problem: Instead of referring to field 2, I'll test the length of the array.
Since PBKD in MediaWiki 1.36 uses 7 fields, the test for using PBKD is
Well, of course the code can be shortened :-)
Last edit: Klaus Elsbernd 2021-09-15