[00:33:30] Hi all, I've just set up mediawiki and am attempting to get the LdapAuthentication plugin installed. I am aware that there's some issues with it on the current build of mediawiki, however I'm not quite sure where to start. [00:34:34] I have never actually touched mediawiki before yesterday so the environment is new to me. I have downloaded the plugin codebase off github. I have installed composer dependencies, loaded the plugin in LocalSettings.php, and I have the error that 'extension.json' does not exist in the plugin path. [00:34:54] So my first uncertainty with this... Is extension.json hand-crafted or is it generated with a tool? [00:36:09] My second... It is my understanding that extension.json is relatively new - and that before it used to be codified in the plugin itself. How would I go about converting that into an extension.json file? [00:36:52] The codebase for the plugin: https://github.com/wikimedia/mediawiki-extensions-LdapAuthentication [00:37:40] st_prg: I don't think LDAP Authentication has been updated to use extension.json yet - you can use: require_once "$IP/extensions/LdapAuthentication/LdapAuthentication.php"; to install it [00:38:28] @legoktm[not-LA]: Ahh ok thanks. [00:39:13] So I am more than happy to try contributing to this, perhaps I could help build the extension.json file. Are there any tips you may have, or any good links I can look into? [00:39:35] Also if you can, could you shed some light on my questions above? [00:40:16] st_prg: https://www.mediawiki.org/wiki/Manual:Extension_registration#Migration_for_extension_developers and https://www.mediawiki.org/wiki/Manual:Extension.json/Schema are good places to get started with how extension.json works [00:40:40] That's great, thank you very much [00:40:49] st_prg: it looks like there's some previous work linked from https://phabricator.wikimedia.org/T87934 that might be useful [00:41:08] Hmm [00:41:25] Did I miss that because I got the code from github instead of gerrit? [00:41:46] Ahh that's not an accepted patch yet [00:42:09] yeah it wasn't merged yet [00:42:40] Great, thanks for that! [01:09:54] st_prg: LdapAuth has bigger problems than that [01:10:11] tgr: Is there a list? :) [01:11:45] Using the link @legoktm[not-LA] sent me, I am loading the plugin successfully with extension.json [01:11:55] I have not yet tested it with LDAP however [01:12:24] st_prg: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/LdapAuthentication/+/296559/1//COMMIT_MSG is the gist of it [01:14:28] Ahh yes tgr, I did see that commit - I'm going to start looking into it [01:15:05] more generally, it can be configured to work in many different ways which are not well documented or tested so people don't really want to touch it in fear of breaking the workflows they don't themselves use [01:16:02] at the hackathon 2 (I think) years ago there was an effort to replace it with a set of more focused extensions, I think that petered out eventually [01:16:07] https://www.mediawiki.org/wiki/LDAP_hub [01:16:58] so anyway, it has been partially updated to the new auth framework (new two years ago, that is), and partially broken [01:17:28] the part that has been updated has some interop issues as well [01:17:53] if you just want to use it for login, that will probably be fine [01:18:07] especially if it does not need to work together with other auth extensions [01:18:30] the autologin mode needs a major rewrite to work on MW 1.27+ [01:36:30] What is the 'autologin' mode? [01:37:02] Where you are automatically logged in based on the current session? [01:37:08] (on your computer) [02:33:50] st_prg: yeah, AIUI it's when actual authentication is done by the web server (e.g. Kerberos or client-side SSL) and then the extension looks up the user in LDAP and maps it to a wiki user [02:35:45] Wow, that's crazy... I'm just looking at building a plugin from the ground up. The other one looks pretty dated. I've found a bunch of other plugins which look very good as a base off which to study [02:37:27] tgr It seems a lot of the documentation is still for the old method? [02:37:47] require_once instead of wfLoadExtension [02:37:52] yeah, the extension has not been maintained for a while [02:43:59] Hello! I'm trying to use AWS S3 for our image stores but apparently setting $wgLocalFileRepo prevents hashed directories from being used. I've set 'hashLevels' => 2, in the $wgLocalFileRepo array but MediaWiki seems to insist on sticking every file in the same bucket. Is there another setting that has to be enabled somewhere? [02:46:59] penguinstyles: that should work just fine [02:49:00] I guess you are using LocalS3Repo? [02:49:34] https://github.com/edwardspec/mediawiki-aws-s3 actually @tgr [02:50:30] Tried using LocalS3Repo and it kept throwing errors [02:50:44] maybe your settings are getting squashed by https://github.com/edwardspec/mediawiki-aws-s3/blob/master/includes/AmazonS3Hooks.php#L71 [02:52:26] Heh, looks like they were. [02:52:31] Thanks! [02:52:43] 🍪 [02:54:11] although at a glance container sharding in FileBackend and hash levels in FileRepo are entirely unrelated? [02:54:39] MediaWiki file handling code is scary. [12:04:39] hi KayCee [12:04:59] someone might be able t [12:05:00] to [12:32:22] question was [12:32:24] folks, good morning (from Ohio) .. what is the current state of the art for searching across multiple wikis on the same server? .. Is there a tool outside of the wiki that can do this? Does anyone do this? [12:32:44] cross-wiki search [12:32:54] this has been done before [12:34:15] https://it.wikipedia.org/w/index.php?search=strasbourg&title=Speciale%3ARicerca&fulltext=1 [12:34:17] look at the right [12:35:20] there's some comments related to it in https://phabricator.wikimedia.org/T109957 [12:35:56] Is this the front door for Cross-Wiki Search? [12:35:57] https://www.mediawiki.org/wiki/Cross-wiki_Search_Result_Improvements [12:37:55] looks like it involves wgCirrusSearchLanguageToWikiMap [12:38:56] looks like that's part of the project for wikimedia wikis [12:39:00] doesn't look like they completed it [12:39:09] don't know how useable the system would be outside wikimedia [15:12:39] mediawikiwannabe: I would recommend following to get started [15:13:17] KayCee: where did you get that code from? mwCustomEditButtons is deprecated I think [23:13:26] i would like admins to be able to modify user's watchlist preferences: whether they have a particular page on the watchlist; whether they receive emails for each change [23:13:51] or maybe just the first one. the second one could be done by a configuration change to make this on by default