This module provides advanced LDAP functions.
You can assign user's group or space memberships automatically using LDAP configuration.
The mapping can be used by:
Note: The mapping is handled by the hourly cron job and may takes some time to affect.
As administrative user, you can map a LDAP group directly to a space.
Configuration page: Open Space
-> Members
-> LDAP
As administrative user, you can map a LDAP group against HumHub groups which are mainly used for administrative tasks.
Configuration page: Administration
-> Users
-> Groups
-> Select a group
-> LDAP
You can also synchronize profile image from LDAP.
Modify your local configuration protected/config/common.php
and add following section:
<?php
return [
'components' => [
'authClientCollection' => [
'clients' => [
'ldap' => [
'class' => 'humhub\modules\advancedLdap\authclient\LdapAuth',
'profileImageAttribute' => 'thumbnailphoto'
]
]
]
]
];
Add following part into the components
section of your configuration file.
'search' => [
'class' => 'humhub\modules\solr\engine\SolrSearch',
'host' => 'solr-host-name-here', // e.g. localhost
'port' => 12345, // e.g. 8983
'path' => 'solr-path', // e.g. /solr/example1
'username' => 'optional-user-name',
'password' => 'optional-password',
],
More information about the individual configuration can be found here: docs.humhub.org
Use the standard managed schema mode (schemaless).
Search core creation example:
cd bin
./solr create -c example1
Tweak default field type:
Edit the file server/solr/example1/conf/solrconfig.xml
and change:
<str name="defaultFieldType">strings</str>
to:
<str name="defaultFieldType">string</str>
Restart the SOLR search server:
cd bin
./solr restart
Rebuild your search index and check your Apache SOLR status page.
Change following field types:
curl -X POST -H 'Content-type:application/json' --data-binary '{
"replace-field":{
"name":"files",
"type":"text_general",
"stored":false }
}' http://localhost:8983/solr/example1/schema
curl -X POST -H 'Content-type:application/json' --data-binary '{
"replace-field":{
"name":"comments",
"type":"text_general",
"stored":false }
}' http://localhost:8983/solr/example1/schema