-
Notifications
You must be signed in to change notification settings - Fork 17
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
sync of local user deletes the local user #511
Comments
Yes, I fully agree. Great spot @phil-davis. The command's use case is to clean-up LDAP users which are not available in LDAP any more. The command should not delete users that do not come from LDAP. |
Added the "bug" label. |
I took myself off assignment, this now needs to be scheduled for developer work... |
This scenario added in PR #506 looks a bit surprising to me. The test does the command:
local-user
is in the local user database, not in LDAP. So of course it is not found in LDAP. The admin has specified-m remove
so the command removes the user. But the user is (and always was) just in the local database, they never came from LDAP in the first place.If I was the admin then I would be a bit surprised that the
user:sync
command could ever delete a "real local user", even when I use-m remove
. I feel like I should get an error message whenever the UID specified after-u
is a "real local user". I should not be able to accidentally mess up a "real local user" with theuser:sync
command. I should have to explicitly do auser:delete
if I want to delete a "real local user" (e.g. before then doinguser:sync
to sync the same UID that has just been added to LDAP)The text was updated successfully, but these errors were encountered: