Closed EricGao888 closed 6 months ago
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
#troubleshooting
Here is an example for two kinds of LDAP configurations which Apache Airflow
is using:
Click here for more information.
For the approach which does not need administrator
password and username, you could try this command to test the authentication ldapsearch -v -h ip:port -D uid=xxx,ou=xxxx,o=xxx -w login_user_passoword -x -b ou=xxx,o=xxx
@liqingwang
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
No stale, I'm coming for ya!🤣
Hi @EricGao888 , I'd like to submit a PR.
Hi @EricGao888 , I'd like to submit a PR.
@huage1994 Sure, thx for helping out~
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
Search before asking
What happened
What you expected to happen
administrator credentials
, and then searches the accurate DN of the login user. This is unnecessary and inconvenient for DS users, sometimes making users confused. Users should provide accurate DN and DS LDAP authenticator will verify theLDAP user
directly. https://github.com/apache/dolphinscheduler/blob/62b85b9cb3110290519966743c40d0f40ce6af3b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/security/impl/ldap/LdapService.java#L45-L64LDAP email attribute
to verifyLDAP user
. But sometimes there is no such attribute on LDAP side. https://github.com/apache/dolphinscheduler/blob/62b85b9cb3110290519966743c40d0f40ce6af3b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/security/impl/ldap/LdapService.java#L92-L112InitialLDAPContext
is not closed and will take unnecessary resources.How to reproduce
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct