Open
Description
in ldap there are 2 ways to make groups: either the groups have member or uniqueMember; or the user has memberOf or similar attributes.
radicale only has the memberOf method and this attribute is hardcoded (instead of config)
also, even if groups are configured off, this memberOf attribute is still queried.
and if your custom ldap schema does not have memberOf, (like mine) the PROPFIND of user will fail.
if i remove memberOf in the attribute list to be requested, it does work (without groups).
I would like it for both ways to work config item and to have the memberOf or uniqueMember to be configurable and most importantly, don't request memberOf if groups is configured off
specifically:
ldap_group_direct = False
ldap_group_indirect_attribute = "memberOf"
ldap_group_direct_attribute = "member" # or uniqueMember
ldap_group_direct_filter = "(&(cn={0})(objectClass=groupOfNames))" # or groupOfUniqueNames
if not ldap_group_direct and ldap_groups: user_attributes.append(ldap_group_indirect_attribute)
- next to user lookup, also do a group lookup (if ldap_group_direct )
- (optionally: one could also not add these attributes if they were None)
- also, this group name could be used to give collection-shared/{0}/* (next to collection-root/{0}/* ) for easier sharing (in owner_write rights mode)