-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
user_ldap acceptance tests failing #37428
Comments
Single user sync seems to not be finding the specified user. https://drone.owncloud.com/owncloud/user_ldap/2525/48/11
@mrow4a since PR #37398 was merged to core master, The tests pass when run against core "latest" which is the core 10.4.1 release tarball, bbut fail when run against the daily-master-qa tarball, which is built each day from the core git master branch. |
It happens with master but not with 10.4.X? Ok maybe I missed something as I never test apps against unstable core (never master, only on tags) |
Correct - the change in master makes these tests fail in user_ldap. They started failing in the nightly the night after PR #37398 was merged in core. And there are no other changes in user_ldap code. So it looks like that PR is the source of the problem. |
Latest nightly example: https://drone.owncloud.com/owncloud/user_ldap/2527/48/11
|
I removed this issue from QA assignment. It seems to be a real problem that needs developer investigation. |
@phil-davis it seems in your testing instance for LDAP, LDAP search for I will try to setup that acceptance test suite locally with ldap to develop locally, it is some work. cc @jvillafanez |
Was this closed accidentally? |
@phil-davis yes, sorry - accident |
@phil-davis @jvillafanez this is possible fix https://github.com/owncloud/core/compare/bugfix/all-users-retr-s-user-sync , but this would be really bad if we need to do that and cannot filter search with LDAP #37428 (comment) on some setups (on mine with https://github.com/owncloud-docker/compose-playground/tree/master/compose/ldap I cannot reproduce it).. |
Added QA labels again - we will try to reproduce manually today, and then see if there is something in the CI-based LDAP configuration that needs to be adjusted to allow single-user searches to the LDAP server. Based on that, it might be that there are recommendations for LDAP server settings that must be in place for single-user sync to work. Note: we were also not able to find a way to successfully test the user-sync API that was added recently in PR #36428 - I suspect that this will turn out to be a similar problem. Let's see. |
@phil-davis it can be easy to check - just run NOTE: |
Not sure if these are the related ldap's logs...
(displayName not indexed shouldn't matter) In addition,
the user0 doesn't seem to have a display name. As far as I know, all the user that will be synced in ownCloud MUST have a display name (the |
@jvillafanez |
@jvillafanez @micbar as per discussion with @phil-davis https://github.com/owncloud/user_ldap/blob/master/tests/acceptance/setConfig.sh missing |
yes, it seems the main cause is that it only searches using the displayname by default, and you need to explicit set additional attributes. |
@jvillafanez shall we finish owncloud/user_ldap#238 (comment) ?
|
It's probably too late to add new APIs, but I'm not the one deciding. |
e.g. https://drone.owncloud.com/owncloud/user_ldap/2523/48/11
e.g.
I think that some code changes related to the way the acceptance tests keep track ofcreatedUsers
are still not working nicely in the LDAP user case.Needs investigation and fixing!
These fails started happening 3 days ago - after core PR #37398 was merged.
The text was updated successfully, but these errors were encountered: