Skip to content

LDAP: Limit auth to groups #3803

Open
Open
@AlexSSP

Description

@AlexSSP

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)

Hello everyone!
How can I use SPRING_LDAP_USERFILTER_SEARCHFILTER for Active Directory authentication.
My env docker-compose.yml:
AUTH_TYPE: "LDAP"
SPRING_LDAP_URLS: "ldap://xxx:389"
SPRING_LDAP_USERFILTER_SEARCHBASE: "dc=dcname,dc=local"
SPRING_LDAP_USERFILTER_SEARCHFILTER: "(&(uid={0})(memberOf=cn=kafka_users,ou=Groups,dc=dcname,dc=local))"
SPRING_LDAP_ADMINUSER: "CN=ldap,DC=dcname,DC=local"
SPRING_LDAP_ADMINPASSWORD: "Password"
OAUTH2.LDAP.ACTIVEDIRECTORY: "true"
OAUTH2.LDAP.AСTIVEDIRECTORY.DOMAIN: "dcname.local"

With this configuration, authorization is successful for any users of Active Directory, not only for members of group kafka_users

Expected behavior

No response

Your installation details

v0.6.2

Steps to reproduce

SPRING_LDAP_USERFILTER_SEARCHFILTER not work for my config

Screenshots

No response

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions