server/apps/user_ldap
Roland Tapken c2d8a36d9a
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-05 11:07:35 +01:00
..
ajax Access needs UserManager, missed to add in #8833 2018-04-23 15:58:50 +02:00
appinfo add LDAP ConfigHandler for external storages and "$home" var 2019-02-14 15:22:22 +01:00
composer add LDAP ConfigHandler for external storages and "$home" var 2019-02-14 15:22:22 +01:00
css Fix font-face on LDAP tooltip 2018-10-23 13:12:08 +02:00
img Add icon to admin page sidebar for LDAP 2017-01-24 12:54:32 -06:00
js add GUI option to set the $home placeholder 2019-02-14 15:22:22 +01:00
l10n [tx-robot] updated from transifex 2019-03-01 01:12:36 +00:00
lib user_ldap: Filter groups after nexted groups 2019-03-05 11:07:35 +01:00
templates Fixed grammar 2019-02-22 19:49:36 +01:00
tests Fix tests 2019-03-01 20:57:01 +01:00
vendor/ui-multiselect Migrate multiselect to user_ldap 2014-11-13 00:47:14 +01:00