Skip to content

LDAP error code handling, specify errors that would not end up in a UnavailableServer exception #7675

Description

@blizzz

In the LDAP Backend we have an wrapper in place that takes care of the error handling. In some occasions, for instance when the server is offline for whatever reason, an exception must be thrown to avoid unpredicatable side effects.

Currently, we hand pick the error cases where an specific expression is thrown, the default is to let them pass through. There are several possible error codes, and as seen in #7662 also some far various states of being effectively offline. The suggestion is to only white list error codes and let only pass those that are acceptable.

It is a hardening approach, as of now no other problems are known by the current approach.

Activity

  1. added this to the Nextcloud 14 milestone on Jan 3, 2018
  2. MorrisJobke commented on Jun 25, 2018

    @MorrisJobke
    Member

    @blizzz Still something for 14? Maybe for the polishing phase? Or maybe something for later?

  3. blizzz commented on Jun 28, 2018

    @blizzz
    MemberAuthor

    I am off during polishing → 15.

  4. MorrisJobke commented on Nov 5, 2018

    @MorrisJobke
    Member

    @blizzz Moving to 16.

  5. removed this from the Nextcloud 17 milestone on Sep 26, 2019
  6. 14 remaining items

  7. added this to the Nextcloud 17.0.8 milestone on Jun 4, 2020
  8. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Aug 20, 2020
  9. szaimen commented on Jun 9, 2021

    @szaimen
    Contributor

    Seems like this is still valid?

  10. blizzz commented on Jun 9, 2021

    @blizzz
    MemberAuthor

    yes, not high on the prio

  11. changed the title [-]LDAP error code handling, follow whitelist strategy instead[/-] [+]LDAP error code handling, specify errors that would not end up in a UnavailableServer exception[/+] on Jun 9, 2021
  12. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jun 9, 2021
  13. blizzz commented on Sep 4, 2026

    @blizzz
    MemberAuthor

    Today got aware about an Operations Error with an invalid LDAP query that materialized through an unexpected configuration (empty user filter). Due to being logged into debug only and a high traffic instance, it was hard to spot, and it did not even surface with a consistent behaviour on the UI side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions