nextcloud/apps/user_ldap
Roland Tapken 8f57824707
user_ldap: Filter groups after nexted groups
Currently groupsMatchFilter is called before nested groups are resolved.
This basicly breaks this feature since it is not possible to inherit
membership in a group from another group.

Minimal example:

  Group filter: (&(objectClass=group),(cn=nextcloud))
  Nested groups: enabled

  cn=nextcloud,ou=Nextcloud,ou=groups,dn=company,dn=local
    objectClass: group

  cn=IT,ou=groups,dn=company,dn=local
    objectClass: group
    memberOf: cn=nextcloud,ou=Nextcloud,ou=groups,dn=company,dn=local

  cn=John Doe,ou=users,dn=company,dn=local
    objectClass: person
    memberOf: cn=IT,ou=groups,dn=company,dn=local

Since 'cn=IT,ou=groups,dn=company,dn=local' doesn't match the group
filter, John wouldn't be a member of group 'nextcloud'.

This patch fixes this by filtering the groups after all nested groups
have been collected. If nested groups is disabled the result will be the
same as without this patch.

Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2019-03-07 22:45:58 +01:00
..
ajax Access needs UserManager, missed to add in #8833 2018-04-23 15:58:50 +02:00
appinfo Fix info.xml files of shipped apps 2018-02-16 10:24:03 +01:00
composer Update autoloader dump 2018-11-15 13:49:19 +01:00
css css indent alignment 2018-04-25 14:47:16 +08:00
img Add icon to admin page sidebar for LDAP 2017-01-24 12:54:32 -06:00
js Use variable for proper translations 2018-03-10 13:00:25 +01:00
l10n [tx-robot] updated from transifex 2019-03-01 01:12:57 +00:00
lib user_ldap: Filter groups after nexted groups 2019-03-07 22:45:58 +01:00
templates [LDAP] The WebUI Wizard also should not assign empty config IDs 2018-08-23 17:58:35 +02:00
tests ensure attribute names are lower cased 2019-02-14 15:36:37 +01:00
vendor/ui-multiselect Migrate multiselect to user_ldap 2014-11-13 00:47:14 +01:00