From 8abb43fc94af9cffee8a39470f23dc8d0a92d623 Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Tue, 30 Jul 2024 08:47:56 +0200
Subject: [PATCH] Hotfix rabbitmq auth

---
 dbrepo-broker-service/rabbitmq.conf | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/dbrepo-broker-service/rabbitmq.conf b/dbrepo-broker-service/rabbitmq.conf
index c71804aefe..e5eabfe1ad 100644
--- a/dbrepo-broker-service/rabbitmq.conf
+++ b/dbrepo-broker-service/rabbitmq.conf
@@ -1,9 +1,6 @@
 # user
 default_vhost = dbrepo
 default_user_tags.administrator = false
-default_permissions.configure = .*
-default_permissions.read = .*
-default_permissions.write = .*
 
 # enable http outside localhost
 listeners.tcp.1 = 0.0.0.0:5672
@@ -15,6 +12,7 @@ management.load_definitions = /app/definitions.json
 # logging
 log.console = true
 log.console.level = warning
+auth_ldap.log = true
 
 # Obviously your authentication server cannot vouch for itself, so you'll need another backend with at least one user in
 # it. You should probably use the internal database
@@ -26,7 +24,7 @@ auth_backends.2 = internal
 auth_ldap.servers.1 = identity-service
 auth_ldap.port = 1389
 auth_ldap.user_dn_pattern = ${username}
-auth_ldap.dn_lookup_base = ou=users,dc=dbrepo,dc=at
+auth_ldap.dn_lookup_base = dc=dbrepo,dc=at
 auth_ldap.dn_lookup_attribute = uid
 auth_ldap.dn_lookup_bind.user_dn = cn=admin,dc=dbrepo,dc=at
-auth_ldap.dn_lookup_bind.password = admin
+auth_ldap.dn_lookup_bind.password = 2d4983818813218fee3dc954b3c9e561
-- 
GitLab