Skip to content

[Bug] opencloud LDAP search infinite loop #2373

@ByteSquire

Description

@ByteSquire

Describe the bug

my opencloud server infinitely searches for ldap group members

Steps to reproduce

  1. setup opencloud-compose with oidc and ldap
  2. run opencloud-compose
  3. assign members to groups in ldap
  4. log is being spammed by ldap searches

Expected behavior

opencloud only searches ldap at reasonable intervals like once a day and on request of an admin when they open the groups or people dashboard

Actual behavior

opencloud continuously searches ldap for group members, wasting resources both on the opencloud server and the ldap instance that has to serve these searches

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

Details

      OC_LDAP_GROUP_BASE_DN: "o=kanidm"
      OC_LDAP_GROUP_OBJECTCLASS: "group"
      OC_LDAP_GROUP_SCHEMA_GROUPNAME: name
      OC_LDAP_GROUP_SCHEMA_ID: uuid
      OC_LDAP_GROUP_FILTER: "(&(memberof=spn=opencloud)(!(class=builtin)))"
      OC_LDAP_USER_SCHEMA_USER_TYPE: "person"
      OC_LDAP_USER_BASE_DN: "o=kanidm"
      OC_LDAP_USER_OBJECTCLASS: "person"
      OC_LDAP_USER_FILTER: "(&(memberof=spn=opencloud)(!(class=group)))"
      OC_LDAP_DISABLE_USER_MECHANISM: none
      OC_LDAP_USER_SCHEMA_ID: uuid
      OC_LDAP_USER_SCHEMA_USERNAME: name
      OC_LDAP_USER_SCHEMA_DISPLAYNAME: displayname
      OC_LDAP_SERVER_WRITE_ENABLED: "false"

Additional context

logs:

opencloud-opencloud-1.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Qualification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions