provectus/kafka-ui

When using ldap login, the login page css missing

polingsky opened this issue ยท 1 comments

Issue submitter TODO list

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

Describe the bug (actual behavior)

I set the auth config to ldap, but the login page css will want to download from internet
In our environment, I can not access internet, so the login page will broken
But when I set auth config to basic auth, the login page css will normal

My ldap config
export AUTH_TYPE='LDAP'
export SPRING_LDAP_URLS='ldap://x.x.x.x:389'
export SPRING_LDAP_BASE='ou=users,ou=app,dc=org,dc=net'
export SPRING_LDAP_USER_FILTER_SEARCH_BASE='ou=users,ou=app,dc=org,dc=net'
export SPRING_LDAP_USER_FILTER_SEARCH_FILTER='(uid={0})'

Expected behavior

The ldap login page will same as basic auth login path

Your installation details

  1. kafka-ui-api-v0.7.1.jar

export AUTH_TYPE='LDAP'
export SPRING_LDAP_URLS='ldap://x.x.x.x:389'
export SPRING_LDAP_BASE='ou=users,ou=app,dc=org,dc=net'
export SPRING_LDAP_USER_FILTER_SEARCH_BASE='ou=users,ou=app,dc=org,dc=net'
export SPRING_LDAP_USER_FILTER_SEARCH_FILTER='(uid={0})'

export SERVER_PORT='8087'
export KAFKA_CLUSTERS_0_PROPERTIES_SECURITY_PROTOCOL='SASL_PLAINTEXT'
export KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS='app-1.org.net:6667,app-2.org.net:6667,app-3.org.net:6667'
export KAFKA_CLUSTERS_0_ZOOKEEPER='app-1.org.net:2182,app-2.org.net:2182,app-3.org.net:2182'
export KAFKA_CLUSTERS_0_PROPERTIES_SASL_KERBEROS_SERVICE_NAME='kafka'
export KAFKA_CLUSTERS_0_PROPERTIES_SASL_JAAS_CONFIG='com.sun.security.auth.module.Krb5LoginModule required serviceName="kafka" useKeyTab=true storeKey=true keyTab="/etc/security/keytabs/kafka.service.keytab" principal="kafka/app-2.org.net@ORG.NET";'
export KAFKA_CLUSTERS_0_METRICS_PORT='9999'

Steps to reproduce

Modify

export AUTH_TYPE="LOGIN_FORM"
export SPRING_SECURITY_USER_NAME="admin"
export SPRING_SECURITY_USER_PASSWORD="admin"

to

export AUTH_TYPE='LDAP'
export SPRING_LDAP_URLS='ldap://x.x.x.x:389'
export SPRING_LDAP_BASE='ou=users,ou=app,dc=org,dc=net'
export SPRING_LDAP_USER_FILTER_SEARCH_BASE='ou=users,ou=app,dc=org,dc=net'
export SPRING_LDAP_USER_FILTER_SEARCH_FILTER='(uid={0})'

Screenshots

kafka-ui-ldap-login

Logs

No response

Additional context

No response

Hello there polingsky! ๐Ÿ‘‹

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. ๐Ÿ‘€