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

[QA] occ user:sync prints wrong diagonstics after disabling/reenabling users #655

Open
jnweiger opened this issue Jul 7, 2021 · 0 comments

Comments

@jnweiger
Copy link
Contributor

jnweiger commented Jul 7, 2021

Seen with user_ldap-0.15.3-RC3 at server 10.8.0-beta2

Use the Edit LDAP Query in the User tab to filter down to a few users only. E.g.
(|(&(objectclass=inetOrgPerson)(givenname=Th*))) then run
`occ user:sync -c -m disable -r "OCA\User_LDAP\User_Proxy"

-> Most users become disabled. Only e.g. "Third Ldapuser" can log in. OK

broaden the filter back to normal wiith e.g. (|(&(objectclass=inetOrgPerson)(givenname=*))) and re-run the user sync without(!) the -r flag.
-> No users users become re-enabled. OK
Then re-run the iser sync with the -r flag, -> All users become re-enabled and can log in.

Repeat a few times with and without -r.
At some point occ user:sync -c -m disable -r "OCA\User_LDAP\User_Proxy" prints

...
e77866d0-72f1-103b-8427-9dea2428f1ef, One thousand and ninety-second Ldapuser, [email protected] skipped, already disabled
e77a3212-72f1-103b-8428-9dea2428f1ef, One thousand and ninety-third Ldapuser, [email protected] skipped, already disabled
e77bec7e-72f1-103b-8429-9dea2428f1ef, One thousand and ninety-fourth Ldapuser, [email protected] skipped, already disabled
e77dcde6-72f1-103b-842a-9dea2428f1ef, One thousand and ninety-fifth Ldapuser, [email protected] skipped, already disabled
e77f7826-72f1-103b-842b-9dea2428f1ef, One thousand and ninety-sixth Ldapuser, [email protected] skipped, already disabled
e780fa0c-72f1-103b-842c-9dea2428f1ef, One thousand and ninety-seventh Ldapuser, [email protected] skipped, already disabled
e7827a1c-72f1-103b-842d-9dea2428f1ef, One thousand and ninety-eighth Ldapuser, [email protected] skipped, already disabled
e7840a6c-72f1-103b-842e-9dea2428f1ef, One thousand and ninety-ninth Ldapuser, [email protected] skipped, already disabled

No existing accounts to re-enable.

Inserting new and updating all known users from OCA\User_LDAP\User_Proxy ...
 1104/1104 [============================] 100%


Sync of users finished, encountered 0 errors.

This indicates that e.g. user [email protected] is disabled.
Try log in using that email address, the user can log in correctly.

Expected behaviour: The message should say "... skipped, already enabled"
Switching this back and forth a few times, a

@jnweiger jnweiger mentioned this issue Jul 7, 2021
41 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant