mirror of
https://github.com/lldap/lldap.git
synced 2024-11-25 09:06:03 +00:00
example_configs: Add Mastodon and Traccar
This commit is contained in:
parent
2ca5e9e720
commit
a65ad14349
3 changed files with 33 additions and 0 deletions
|
@ -318,6 +318,7 @@ folder for help with:
|
|||
- [Jitsi Meet](example_configs/jitsi_meet.conf)
|
||||
- [KeyCloak](example_configs/keycloak.md)
|
||||
- [LibreNMS](example_configs/librenms.md)
|
||||
- [Mastodon](example_configs/mastodon.env.example)
|
||||
- [Matrix](example_configs/matrix_synapse.yml)
|
||||
- [Mealie](example_configs/mealie.md)
|
||||
- [MinIO](example_configs/minio.md)
|
||||
|
@ -333,6 +334,7 @@ folder for help with:
|
|||
- [Squid](example_configs/squid.md)
|
||||
- [Syncthing](example_configs/syncthing.md)
|
||||
- [TheLounge](example_configs/thelounge.md)
|
||||
- [Traccar](example_configs/traccar.xml)
|
||||
- [Vaultwarden](example_configs/vaultwarden.md)
|
||||
- [WeKan](example_configs/wekan.md)
|
||||
- [WG Portal](example_configs/wg_portal.env.example)
|
||||
|
|
15
example_configs/mastodon.env.example
Normal file
15
example_configs/mastodon.env.example
Normal file
|
@ -0,0 +1,15 @@
|
|||
## ADD after values in the existing .env file.
|
||||
## This example uses the unsecured 3890 port. For ldaps, set LDAP_METHOD=simple_tls and LDAP_PORT=6360
|
||||
## For more details, see https://github.com/joylarkin/mastodon-documentation/blob/master/Running-Mastodon/Enabling-LDAP-login.md
|
||||
LDAP_ENABLED=true
|
||||
LDAP_METHOD=plain
|
||||
LDAP_HOST=lldap
|
||||
LDAP_PORT=3890
|
||||
LDAP_BASE=dc=domain,dc=com
|
||||
LDAP_BIND_DN=uid=admin,ou=people,dc=domain,dc=com
|
||||
LDAP_PASSWORD=<lldap_admin_password_here>
|
||||
LDAP_UID=uid
|
||||
LDAP_MAIL=mail
|
||||
LDAP_UID_CONVERSION_ENABLED=true
|
||||
# match username or mail to authenticate, and onlow allow users belonging to group 'mastodon'
|
||||
LDAP_SEARCH_FILTER=(&(memberof=cn=mastodon,ou=groups,dc=domain,dc=com)(|(%{uid}=%{email})(%{mail}=%{email})))
|
16
example_configs/traccar.xml
Normal file
16
example_configs/traccar.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!-- Append at the end of the <entry> sections in traccar.xml -->
|
||||
<entry key='ldap.enable'>true</entry>
|
||||
<!-- Important: the LDAP port must be specified in both ldap.url and ldap.port -->
|
||||
<entry key='ldap.url'>ldap://lldap:3890</entry>
|
||||
<entry key='ldap.port'>3890</entry>
|
||||
<entry key='ldap.user'>UID=admin,OU=people,DC=domain,DC=com</entry>
|
||||
<entry key='ldap.password'>BIND_USER_PASSWORD_HERE</entry>
|
||||
<entry key='ldap.force'>true</entry>
|
||||
<entry key='ldap.base'>OU=people,DC=domain,DC=com</entry>
|
||||
<entry key='ldap.idAttribute'>uid</entry>
|
||||
<entry key='ldap.nameAttribute'>cn</entry>
|
||||
<entry key='ldap.mailAttribute'>mail</entry>
|
||||
<!-- Only allow users belonging to group 'traccar' to login -->
|
||||
<entry key='ldap.searchFilter'>(&(|(uid=:login)(mail=:login))(memberOf=cn=traccar,ou=groups,dc=domain,dc=com))</entry>
|
||||
<!-- Make new users administrators if they belong to group 'lldap_admin' -->
|
||||
<entry key='ldap.adminFilter'>(&(|(uid=:login)(mail=:login))(memberOf=cn=lldap_admin,ou=groups,dc=domain,dc=com))</entry>
|
Loading…
Reference in a new issue