Why Kafka-UI send two requests to OpenLDAP when login? #3954
-
As my title say that, when we login Kafka-UI website, the Kafka-UI server send two requests to OpenLDAP:
And I cannot login Kafka-UI website because of the first request (I think). This is my application.yml about LDAP, please help me look for error: auth:
type: LDAP
spring:
ldap:
urls: ldap://xxx.xxx.xxx.xxx:389
base: "dc=season,dc=com"
admin-user: "cn=admin,dc=season,dc=com"
admin-password: "123"
user-filter-search-base: "dc=season,dc=com"
user-filter-search-filter: ""
oauth2:
ldap:
activeDirectory: false |
Beta Was this translation helpful? Give feedback.
Answered by
waitspring
Jun 21, 2023
Replies: 1 comment 11 replies
-
Hi, can't possibly help you since it's an issue with your specific infra. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Haarolean The answer is
user-filter-search-filter
configure.I guess Kafka-UI just only accept one item by
user-filter-search-filter
with spring ldap.If we make the paramter value null, or just make
user-filter-search-filter: "(objectClass=inetOrgPerson)"
, spring ldap package will get many items from LDAP, but Kafka-UI has not anyexcept
condition to deel this items so that Kafka-UI return 500 error.I think this is a bug and means Kafka-UI's LDAP is not strong. Maybe Kafka-UI can return a warning in UI, like "Your user-filter-search-filter is not precision so that we find many users from LDAP." That's better than return 500 code.