kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

LDAP Authorization fails, Incorrect result size

Open ozhukhinoa opened this issue 1 year ago • 1 comments

Issue submitter TODO list

  • [X] I've looked up my issue in FAQ
  • [X] I've searched for an already existing issues here
  • [X] I've tried running master-labeled docker image and the issue still persists there
  • [X] I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

I'm trying to login via LDAP. But after entering authorization data on the web page and clicking on the login button, it gives an error and kafka-ui interface is not loading.

Expected behavior

Successful authorization and loading of the Kafka ui interface.

Your installation details

  1. App version 53a6553

kafka_ui.yaml


version: "3" services:

kafka-ui: container_name: kafka-ui-ldap image: provectuslabs/kafka-ui:master ports: - 8091:8080 environment: DYNAMIC_CONFIG_ENABLED: "true" CONFIG_RELATED_UPLOADS_DIR: "/etc/kafkaui/uploads" AUTH_TYPE: "LDAP" volumes: - ./uploads:/etc/kafkaui/uploads:rw - ./kui/config.yml:/etc/kafkaui/dynamic_config.yaml restart: on-failure


config.yaml:

auth: type: LDAP spring: ldap: urls: ldap://dc1.example.com:389 base: "dc=example,dc=com" admin-user: "cn=user,ou=techusers,dc=example,dc=com" admin-password: "passs" user-filter-search-base: "ou=Users,dc=example,dc=com" user-filter-search-filter: "(&(objectCategory=Person)(sAMAccountName=*))" group-filter-search-base: "ou=kafkaui,ou=projects,dc=example,dc=com" # required for RBAC oauth2: ldap: activeDirectory: false aсtiveDirectory: domain: example.com

Steps to reproduce

  1. I go to the kafka ui web interface.
  2. The authorization data entry form is loading
  3. After entering authorization data on the web page and clicking on the login button, it gives an error and kafka-ui interface is not loading.

Screenshots

image

After enter login data image

Logs

image

Additional context

I can’t log into Kafka-ui to use RBAC authorization and restrict access rights by user role.

ozhukhinoa avatar Nov 10 '23 10:11 ozhukhinoa

Hello there ozhukhinoa! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

github-actions[bot] avatar Nov 10 '23 10:11 github-actions[bot]