diff --git a/README.md b/README.md index e5f1782..9707820 100644 --- a/README.md +++ b/README.md @@ -388,6 +388,7 @@ folder for help with: - [Mastodon](example_configs/mastodon.env.example) - [Matrix](example_configs/matrix_synapse.yml) - [Mealie](example_configs/mealie.md) +- [Metabase](example_configs/metabase.md) - [MegaRAC-BMC](example_configs/MegaRAC-SP-X-BMC.md) - [MinIO](example_configs/minio.md) - [Nextcloud](example_configs/nextcloud.md) @@ -401,6 +402,7 @@ folder for help with: - [Rancher](example_configs/rancher.md) - [Seafile](example_configs/seafile.md) - [Shaarli](example_configs/shaarli.md) +- [SonarQube](example_configs/sonarqube.md) - [Squid](example_configs/squid.md) - [Syncthing](example_configs/syncthing.md) - [TheLounge](example_configs/thelounge.md) diff --git a/example_configs/metabase.md b/example_configs/metabase.md new file mode 100644 index 0000000..67bfd15 --- /dev/null +++ b/example_configs/metabase.md @@ -0,0 +1,79 @@ +# Configuring LDAP in Metabase + +[Metabase](https://github.com/metabase/metabase) + +The simplest, fastest way to get business intelligence and analytics to everyone in your company 😋 + +--- + +## LDAP Host + +``` +example.com +``` + +## LDAP Port + +``` +3890 +``` + +## LDAP Security +``` +None +``` + +## Username or DN +It is recommended to use users belonging to the `lldap_strict_readonly` group +``` +cn=adminro,ou=people,dc=example,dc=com +``` + +## Password +``` +passwd +``` + +## User search base +``` +ou=people,dc=example,dc=com +``` + +## User filter +Only users in the `metabase_users` group can log in +``` +(&(objectClass=inetOrgPerson)(|(uid={login})(mail={login}))(memberOf=cn=metabase_users,ou=groups,dc=example,dc=com)) +``` + +## Email attribute +``` +mail +``` + +## First name attribute +``` +givenname +``` + +## Last name attribute +``` +cn +``` + +## Group Schema + +**Synchronize Group Memberships**: Check this option to synchronize LDAP group memberships. + +**New Mapping**: Create a new mapping between Metabase and LDAP groups: + +- **Group Name**: `cn=metabase_users,ou=groups,dc=example,dc=com` + +## Group search base + +``` +ou=groups,dc=example,dc=com +``` + +## Useful links + +> [Metabase docker-compose.yaml](https://www.metabase.com/docs/latest/troubleshooting-guide/ldap) diff --git a/example_configs/sonarqube.md b/example_configs/sonarqube.md new file mode 100644 index 0000000..821ee7e --- /dev/null +++ b/example_configs/sonarqube.md @@ -0,0 +1,57 @@ +# Configuring LDAP in SonarQube + +[SonarQube](https://github.com/SonarSource/sonarqube) + +Continuous Inspection + +--- + +SonarQube can configure ldap through environment variables when deploying using docker-compose + +## docker-compose.yaml + +```yaml +version: "3" + +services: + sonarqube: + image: sonarqube:community + depends_on: + - db + environment: + SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar + SONAR_JDBC_USERNAME: sonar + SONAR_JDBC_PASSWORD: sonar + LDAP_URL: ldap://example.com:3890 + LDAP_BINDDN: cn=admin,ou=people,dc=example,dc=com + LDAP_BINDPASSWORD: passwd + LDAP_AUTHENTICATION: simple + LDAP_USER_BASEDN: ou=people,dc=example,dc=com + LDAP_USER_REQUEST: (&(objectClass=inetOrgPerson)(uid={login})(memberof=cn=sonarqube_users,ou=groups,dc=example,dc=com)) + LDAP_USER_REALNAMEATTRIBUTE: cn + LDAP_USER_EMAILATTRIBUTE: mail + volumes: + - sonarqube_data:/opt/sonarqube/data + - sonarqube_extensions:/opt/sonarqube/extensions + - sonarqube_logs:/opt/sonarqube/logs + ports: + - "9000:9000" + db: + image: postgres:12 + environment: + POSTGRES_USER: sonar + POSTGRES_PASSWORD: sonar + volumes: + - postgresql:/var/lib/postgresql + - postgresql_data:/var/lib/postgresql/data + +volumes: + sonarqube_data: + sonarqube_extensions: + sonarqube_logs: + postgresql: + postgresql_data: +``` + +> [SonarQube docker-compose.yaml example](https://docs.sonarsource.com/sonarqube/latest/setup-and-upgrade/install-the-server/installing-sonarqube-from-docker/) +