Commit graph

2556 commits

Author SHA1 Message Date
Nextcloud bot
6dbc463104
[tx-robot] updated from transifex 2019-09-08 02:17:02 +00:00
Nextcloud bot
0fd1bf33c9
[tx-robot] updated from transifex 2019-09-05 02:16:36 +00:00
Nextcloud bot
63a4cc6449
[tx-robot] updated from transifex 2019-08-28 02:15:48 +00:00
Nextcloud bot
2d143b8a37
[tx-robot] updated from transifex 2019-08-22 02:14:55 +00:00
Nextcloud bot
b428782764
[tx-robot] updated from transifex 2019-08-18 02:16:00 +00:00
Nextcloud bot
6d11d1f9e5
[tx-robot] updated from transifex 2019-08-11 02:15:47 +00:00
Nextcloud bot
132d1401fc
[tx-robot] updated from transifex 2019-08-08 02:15:04 +00:00
Nextcloud bot
bb89a01241
[tx-robot] updated from transifex 2019-08-02 02:14:52 +00:00
Nextcloud bot
062ec6adb0
[tx-robot] updated from transifex 2019-08-01 02:15:50 +00:00
Nextcloud bot
24e95b0bb4
[tx-robot] updated from transifex 2019-07-25 02:15:01 +00:00
Nextcloud bot
94acddb6fd
[tx-robot] updated from transifex 2019-07-22 02:16:22 +00:00
Nextcloud bot
3fe7a27902
[tx-robot] updated from transifex 2019-07-21 02:15:31 +00:00
Nextcloud bot
96de99da7d
[tx-robot] updated from transifex 2019-07-20 02:14:53 +00:00
Nextcloud bot
fd69188d81
[tx-robot] updated from transifex 2019-07-19 02:27:39 +00:00
Nextcloud bot
53ab33acbe
[tx-robot] updated from transifex 2019-07-18 02:15:19 +00:00
Nextcloud bot
e06e521e65
[tx-robot] updated from transifex 2019-07-05 02:14:29 +00:00
Nextcloud bot
7bb7fa278f
[tx-robot] updated from transifex 2019-06-14 02:14:49 +00:00
Nextcloud bot
37ccc9d373
[tx-robot] updated from transifex 2019-05-29 02:14:05 +00:00
Nextcloud bot
942f8fb587
[tx-robot] updated from transifex 2019-05-28 02:14:01 +00:00
Nextcloud bot
50f7c4f6d0
[tx-robot] updated from transifex 2019-05-21 02:13:48 +00:00
Nextcloud bot
596a3de6ce
[tx-robot] updated from transifex 2019-05-07 00:13:17 +00:00
Nextcloud bot
f606d25468
[tx-robot] updated from transifex 2019-05-01 00:13:02 +00:00
Nextcloud bot
e94b15764f
[tx-robot] updated from transifex 2019-04-29 00:12:56 +00:00
Nextcloud bot
31f8d7499b
[tx-robot] updated from transifex 2019-04-18 00:13:06 +00:00
Nextcloud bot
6fdbdc326a
[tx-robot] updated from transifex 2019-04-16 00:17:47 +00:00
Nextcloud bot
7966a5efd6
[tx-robot] updated from transifex 2019-04-11 00:13:22 +00:00
Nextcloud bot
d2d4887f23
[tx-robot] updated from transifex 2019-04-06 00:13:28 +00:00
Nextcloud bot
a1aaa0bd3f
[tx-robot] updated from transifex 2019-03-26 10:41:51 +00:00
Vinicius Cubas Brand
d97339830d LDAP plugin: force createUser to return new user's DN
LDAP plugins must change the createUser method to return the DN, as we
need this to update the cache.

Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
2019-03-21 10:33:46 +00:00
Vinicius Cubas Brand
dd30daa3af Cache cleaning when subadmin adds user to group
This commit fix an error happening when the subadmin tries to create an
user, adding him/her to the group s/he is subadmin of, using a LDAP
User/Group plugin.

This just forces the cache to be reset after an user is added to a
group.

Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
2019-03-21 10:33:46 +00:00
Vinicius Cubas Brand
0f3df7609a fix user creation using LDAP Plugin
Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
2019-03-21 10:33:45 +00:00
Nextcloud bot
70589dfc68
[tx-robot] updated from transifex 2019-03-21 01:14:17 +00:00
Nextcloud bot
a3436d8b09
[tx-robot] updated from transifex 2019-03-16 01:12:52 +00:00
Nextcloud bot
0afe723932
[tx-robot] updated from transifex 2019-03-14 16:08:54 +00:00
Arthur Schiwon
7fa490fde4
remove unused use statement
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-03-07 22:47:40 +01:00
Arthur Schiwon
a23ef68ffe
fix nested group retrieval also for 2 other cases
and also consolidate logic in one method

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-03-07 22:47:06 +01:00
Roland Tapken
a202fc808d
Fixed unit test: groupsMatchFilter will not be called multiple times anymore.
Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2019-03-07 22:46:20 +01:00
Roland Tapken
f88a09140d
Reduce queries to LDAP by caching nested groups
Nested groups are now cached in a CappedMemoryCache object to reduce
queries to the LDAP backend.

Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2019-03-07 22:46:14 +01:00
Roland Tapken
177901d079
user_ldap: really resolve nested groups
The previous patch fixed the problem only for one level of indirection
because groupsMatchFilter() had been applied on each recursive call (and
thus there would be no second level if the first level fails the check).

This new implementation replaces the recursive call with a stack that
iterates all nested groups before filtering with groupsMatchFilter().

Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2019-03-07 22:46:08 +01:00
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
Nextcloud bot
affd0dcaf2
[tx-robot] updated from transifex 2019-03-01 01:12:57 +00:00
Nextcloud bot
1d33283332
[tx-robot] updated from transifex 2019-02-28 01:12:58 +00:00
Nextcloud bot
a05e578d36
[tx-robot] updated from transifex 2019-02-27 01:12:27 +00:00
Nextcloud bot
1274001632
[tx-robot] updated from transifex 2019-02-26 01:12:30 +00:00
Nextcloud bot
7cb9934638
[tx-robot] updated from transifex 2019-02-25 01:12:37 +00:00
Nextcloud bot
e7d5630947
[tx-robot] updated from transifex 2019-02-21 01:12:22 +00:00
Nextcloud bot
53b295456d
[tx-robot] updated from transifex 2019-02-19 01:12:27 +00:00
Nextcloud bot
84354c3008
[tx-robot] updated from transifex 2019-02-18 01:12:29 +00:00
Nextcloud bot
a906a9c216
[tx-robot] updated from transifex 2019-02-17 01:13:48 +00:00
Arthur Schiwon
ecd70ca011
ensure attribute names are lower cased
otherwise they will be skipped when the results is being formatted and the
lower-cased result keys do not match.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-02-14 15:36:37 +01:00