Skip to content

Ldap group creation always use groupOfNames #11775

@3l0w

Description

@3l0w

Describe the bug

When creating a group in the UI, graph will always create a groupOfNames.
So if you wish to use something different like a groupOfUniqueNames and his uniqueMember attributes it will not work.

Steps to reproduce

  1. Use openldap as the backend of ocis
  2. Set OCIS_LDAP_GROUP_OBJECTCLASS to groupOfUniqueNames
  3. Set OCIS_LDAP_GROUP_SCHEMA_MEMBER to uniqueMember

Expected behavior

A group with the objectClass of groupOfUniqueNames should be created

Actual behavior

Got 500 in the console because groupOfNames requires member.

Setup

 OCIS_LDAP_URI: ldap://openldap:389
 OCIS_LDAP_INSECURE: "true"
 OCIS_LDAP_BIND_DN: "cn=admin,dc=thing,dc=com"
 OCIS_LDAP_BIND_PASSWORD: "PASSWORD"
 OCIS_LDAP_GROUP_BASE_DN: "ou=groups,dc=thing,dc=com"
 OCIS_LDAP_GROUP_FILTER: "(objectclass=groupOfUniqueNames)"
 OCIS_LDAP_GROUP_OBJECTCLASS: "groupOfUniqueNames"
 OCIS_LDAP_GROUP_SCHEMA_MEMBER: "uniqueMember"
 OCIS_LDAP_USER_BASE_DN: "ou=users,dc=thing,dc=com"
 OCIS_LDAP_USER_FILTER: "(objectclass=ownCloud)"
 OCIS_LDAP_USER_OBJECTCLASS: "inetOrgPerson"
 LDAP_LOGIN_ATTRIBUTES: "uid"
 OCIS_LDAP_USER_SCHEMA_USERNAME: cn
 OCIS_ADMIN_USER_ID: "UUID"
 IDP_LDAP_LOGIN_ATTRIBUTE: "uid"
 IDP_LDAP_UUID_ATTRIBUTE: "ownCloudUUID"
 IDP_LDAP_UUID_ATTRIBUTE_TYPE: text

Additional context

#11776 should fix the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions