Skip to content

AD LDAP authentication failure #1015

@SergeyTrue

Description

@SergeyTrue

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 main-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 have configured kafka-ui to authenticate via LDAP. I get error
o.s.s.l.a.a.ActiveDirectoryLdapAuthenticationProvider: Active Directory authentication failed: Supplied password was invalid
whenever i try to login. I'm sure I've ented correct credentials (both in UI the ldap config). I tried credentials of different users, but result is the same.

Expected behavior

I would expect that I would be able to login using my AD password.

Your installation details

/etc/kafkaui/roles.yml

auth:
  type: LDAP
spring:
  ldap:
    urls: ldap://t-global.company:389
    base: "CN={0},OU=NoAdmins,OU=MSK,OU=Users,DC=T-Global,DC=company"
    admin-user: "CN=Doe John,OU=NoAdmins,OU=MSK,OU=Users,DC=T-Global,DC=company" 
    admin-password: "pass"
    user-filter-search-base: "DC=t-Global,DC=company"
    user-filter-search-filter: "(&(sAMAccountName={0})(objectClass=user))"
    group-filter-search-base: "OU=Groups,OU=company,DC=T-Global,DC=company"
oauth2:
  ldap:
    activeDirectory: true
    activeDirectory:
      domain: t-global.company

ldapsearch output, for the role i'm trying to authenticate both in IU and specified in the config:

ldapsearch -H ldap://t-global.company:389 -D "CN=Doe John,OU=NoAdmins,OU=CITY,OU=Users,OU=company,DC=T-Global,DC=company" -w "pass" -b "DC=T-Global,DC=company" "(sAMAccountName=DoeJ)"
# Doe John, NoAdmins, CITY, Users, company, T-Global.company
dn: CN=Doe John,OU=NoAdmins,OU=CITY,OU=Users,OU=company,DC=T-Global,DC=company
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: Doe John

distinguishedName: CN=Doe John,OU=NoAdmins,OU=CITY,OU=Users,OU=company,DC=T-
 Global,DC=company
memberOf: CN=MNG_SRV_S-NSK90-APP0276_Admins,OU=S-NSK90-APP0276,OU=NSK,OU=Serve
 rs,OU=Manage,OU=Groups,OU=company,DC=T-Global,DC=company
name: Doe John
sAMAccountName: DoeJ
userPrincipalName: [email protected]
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=T-Global,DC=company

Steps to reproduce

Kafka is runnigng in docker swarm:
docker stack deploy -c docker-compose.yml kafka_cluster

Screenshots

No response

Logs

Here are the logs from kafka-ui service.

33mo.s.s.l.a.a.ActiveDirectoryLdapAuthenticationProvider�[0;39m: Active Directory authentication failed: Supplied password was invalid

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions