owncloud / owncloud/user_ldap

Users are deleted when importing users via occ when there's no LDAP connection available

Open
#460 0 comments 0 reactions 0 assignees View on GitHub

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
  1. Setup LDAP server and add to owncloud.
  2. Log in with an LDAP user
  3. Define in the LDAP wizard a backup (replica) host with wrong configuration and disable main LDAP server
  4. 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

Screen Shot 2019-10-21 at 12 50 41

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.