Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help request: Can ldap-auth plugin support different bind dns? #11295

Open
SandaDD opened this issue May 27, 2024 · 0 comments
Open

help request: Can ldap-auth plugin support different bind dns? #11295

SandaDD opened this issue May 27, 2024 · 0 comments

Comments

@SandaDD
Copy link

SandaDD commented May 27, 2024

Description

From the current implementation, it seems that the base_dn attribute from the ldap-auth plugin for a route and the user_dn attribute for a consumer only differ in the cn part. This essentially means that, in the route, we have defined almost the entire tree for some users.
Snippet of the relevant code ifrom ldap-auth.lua plugin:
image

What if I want a more flexible situation, i.e., that I define the base_dn in the route configuration as ou=users,dc=example,dc=org, but for user_dn I can use cn=user1,ou=serviceUser,ou=users,dc=example,dc=org? In that way, consumers can define users from LDAP with a much wider selection.

Is this scenario supported with the current ldap-auth implementation, or should we write a custom plugin?

Environment

  • apisix-ingress-controller version: 1.7.1
  • apisix gw: 3.8.0.
  • Kubernetes cluster version:
    - Client Version: v1.29.2
    - Server Version: v1.27.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant