GitHub mirror for the MediaWiki extension LDAPGroups. Our actual code is hosted at https://gerrit.wikimedia.org. Please see https://www.mediawiki.org/wiki/Developer_account if you wish to contribute code to this repo. Thank you.
转到文件
libraryupgrader dd829adf8e build: Updating grunt-banana-checker to 0.12.0
Change-Id: Ica624306bcfc370a0651382f487167dc37ae0259
2024-05-10 14:01:21 +00:00
i18n Localisation updates from https://translatewiki.net. 2024-03-08 08:23:13 +01:00
maintenance Replace deprecated User::getAllGroups 2023-01-16 17:10:52 +00:00
src Replace deprecated User::getAllGroups 2023-01-16 17:10:52 +00:00
tests/phpunit tests: Mark SyncMechanism tests as writing to the DB 2024-05-08 17:54:50 +01:00
.editorconfig Clean up dotfiles 2021-03-24 16:48:39 -04:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-14 00:17:02 +00:00
.gitignore build: Replace jsonlint with eslint 2021-02-20 16:28:00 +01:00
.gitreview Add .gitreview 2018-11-20 11:25:05 +01:00
.phpcs.xml build: Updating eslint-config-wikimedia to 0.18.2 2021-03-07 01:32:03 +00:00
CODE_OF_CONDUCT.md Improve AllGroupSync 2018-12-02 11:01:44 +01:00
Gruntfile.js build: Replace jsonlint with eslint 2021-02-20 16:28:00 +01:00
README.mediawiki Fix typos 2020-06-18 21:40:06 +01:00
composer.json build: Updating composer dependencies 2024-05-08 08:30:40 +00:00
extension.json Fix version constraint 2023-10-24 08:44:13 +02:00
package-lock.json build: Updating grunt-banana-checker to 0.12.0 2024-05-10 14:01:21 +00:00
package.json build: Updating grunt-banana-checker to 0.12.0 2024-05-10 14:01:21 +00:00

README.mediawiki

== Extension:LDAPGroups ==

This extension provides an way to map group membership information from a directory service (such as LDAP or Active Directory) to MediaWiki groups using the interface provided by LDAPProvider.

=== Configuration ===

There are two synchronization mechanisms:
* Mapped: "Sync only specifically defined groups and apply a mapping"
* All: "Sync all groups from LDAP, except from some that are managed by the wiki itself"

==Mapped==
<syntaxhighlight lang="json">
{
	"LDAP": {
		...
		"groupsync": {
			"mechanism": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\MappedGroups::factory",
			"mapping": {
				"mathematicans": "ou=mathematicans,dc=example,dc=com"
				"scientists": "ou=scientists,dc=example,dc=com"
			}
		},
		...
	}
}
</syntaxhighlight>

==All==
<syntaxhighlight lang="json">
{
	"LDAP": {
		...
		"groupsync": {
			"mechanism": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\AllGroups::factory",
			"locally-managed": [ "sysop" ]
		},
		...
	}
}
</syntaxhighlight>