-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Add support to set base in EmbeddedLdapAutoConfiguration #13502
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
Conversation
Currently, full path should be present when queries are performed. This commit introduces support to set `base` in `EmbeddedLdapAutoConfiguration`. By default, first entry in `spring.ldap.embedded.base-dn` will be resolved. See spring-projectsgh-11693
snicoll
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @eddumelendez - I am a bit nervous about that change considering this comment and the lack of documentation.
I need to understand whether Spring Data Integration tests are legit or not. Regardless of that, I have a feeling (though I don't know Spring LDAP at all) that there should be a way to back-off from this (not register any base as this is the case now.
Thoughts?
|
AFAICS spring-ldap just support one Just another idea, would be create a On the other hand, I also considering this such a breaking change not only for current integration test also for current projects using embedded ldap support. @snicoll WDYT? |
|
To be completely honest? Not much I am afraid and I didn't get the analogy with our It's not so much about the "one base" bit. It is about "the first on the list" and there is no way to disable that behaviour. If we want to move forward, we have to take care of the Spring Data integration tests situation: either we believe these are wrong (and then we should do something about that) or they are legit and then we shouldn't break them. Applying this PR will last time I checked. |
Agree with this and I understand your worries. Another option can be adding a customizer. |
|
Or a That said, I have no idea, I need to better understand the feature and the impact. @eddumelendez thoughts? |
|
@eddumelendez gentle ping. As you know Spring LDAP way better than I do, perhaps you have some feedback on my (potentially dumb) proposal. |
|
@snicoll sorry I miss the first notification and thanks for the gentle reminder about this topic. Set If we set more than one we will not be able to resolve a default
IMHO, the current state is good and we shouldn't modify it. This PR doesn't make sense to me now. |
|
Thanks for the feedback Eddú |
Currently, full path should be present when queries are performed.
This commit introduces support to set
baseinEmbeddedLdapAutoConfiguration.By default, first entry in
spring.ldap.embedded.base-dnwill beresolved.
See gh-11693