mediawiki / ldap-groups
将目录服务中的组成员映射到MediaWiki。
2.0.8
2024-07-17 07:11 UTC
Requires
- composer/installers: ~1.0|~2
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-08 04:51:55 UTC
README
扩展:LDAPGroups
此扩展提供了一种方式,可以通过LDAPProvider提供的接口将目录服务(如LDAP或Active Directory)中的组成员信息映射到MediaWiki组。
配置
有两种同步机制
- 映射: "仅同步特定定义的组并应用映射"
- 全部: "同步LDAP中的所有组,除了由wiki本身管理的某些组"
映射
<syntaxhighlight lang="json"> { "LDAP": { ... "groupsync": { "mechanism": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\MappedGroups::factory", "mapping": { "mathematicians": "ou=mathematicians,dc=example,dc=com" "scientists": "ou=scientists,dc=example,dc=com" } }, ... } } </syntaxhighlight>
全部
<syntaxhighlight lang="json"> { "LDAP": { ... "groupsync": { "mechanism": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\AllGroups::factory", "locally-managed": ["sysop"] }, ... } } </syntaxhighlight>