Users are deleted when importing users via occ when there's no LDAP connection available
Open
Nobody has claimed this yet.
bug
QA:team
- Dominant language
- PHP
- Stars
- 17
- Forks
- 19
- Avg merge
- 11h 40m
- Merged PRs (30d)
- 2
Description
Description
Steps
- Setup LDAP server and add to owncloud.
- Log in with an LDAP user
- Define in the LDAP wizard a backup (replica) host with wrong configuration and disable main LDAP server
- Try to import users with
php occ user:sync "OCA\User_LDAP\User_Proxy" -m remove
Expected Behavior
If there is no connection with the LDAP server available, users should not be deleted
Actual Behavior

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the php occ user:sync "OCA\User_LDAP\User_Proxy" -m remove command after disabling the main LDAP server and misconfiguring its replica. Trace the user import and removal behavior for OCA\User_LDAP\User_Proxy; done means unavailable LDAP connections no longer cause existing users to be deleted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100